I've been using the strategy I outlined last month (
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-December/003226.html
) for some time now. It is pretty similar to Jelmer's, but makes sure that R
owns the object when a C++ class wrapped into an S4 class. Note that the copy
constructor must be shallow. I am interested in feedback.
Ian
_______________________________________________
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