Skip to content
Prev 3474 / 10988 Next

[Rcpp-devel] Problem with the copy constructor of Rcpp::S4

On Thu, Feb 16, 2012 at 9:25 AM, R?mi Lebret
<remi.lebret at math.univ-lille1.fr> wrote:
You probably want to clone the object, not use the copy constructor.
That is, (not tested)

Rcpp::S4 res(Rcpp::clone(obj.slot("results"));