Hello, 

You can use .factory instead of .constructor in that case. 

Romain

Le 9 janv. 2014 à 03:16, Tim Keitt <tke...@utexas.edu> a écrit :

> I did a little experiment with RCPP_MODULE trying to wrap a class from 
> another library. The class in question has a protected default constructor 
> and uses a non-member factory function for instantiation.
> 
> In short I did not get it to work. I am assuming that if you do not include a 
> .constuctor statement, then the class does not get wrapped in the module. Is 
> that correct?
> 
> THK
> 
> -- 
> http://www.keittlab.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

_______________________________________________
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