[Rcpp-devel] Passing template class as argument in Rcpp function

Dirk Eddelbuettel edd at debian.org
Fri Mar 5 18:59:01 CET 2021


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 | edd at debian.org


More information about the Rcpp-devel mailing list