On 6 June 2013 at 19:05, Simon Zehnder wrote:
| sorry I had overseen this message from you. Okay, so the explicit cast to 
SEXP together with the assignment operator makes the deal. But it still 
includes the reuse of memory right, i.e. the '=' does not call the copy 
constructor? 

But how could an _unsigned int_ from Armadillo possibly have the same value
as a _signed int_ in R?

Either you are efficient (no copy), or you are correct (with a copy). I do
not see how you could have both.

Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com
_______________________________________________
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