On 5 March 2021 at 18:44, Iñaki Ucar wrote:
| Excellent. Note that the clone method was required for my use case, but it
| may be superfluous for yours.

It's very nice to do it straight up with the XPtr class.

A variant using Rcpp Modules is offerend byy RcppAnnoy -- also templated.

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to