Skip to content
Prev 7484 / 10988 Next

[Rcpp-devel] Broken conversion from R-type integer to uvec after update to newer Rcpp version

Hi Dirk, 

Had a look at your example (function named venelin). It seems to me that the problem is not only the const qualifier but also the passing of an argument by reference. 

uvec touvec(uvec& v) {    //fails!
   return v;
}

uvec touvec(uvec v) {     // works!
  return v;
}

Don?t know if this helps?.
Best,
Venelin
On 20 Apr 2014, at 16:10, Dirk Eddelbuettel <edd at debian.org> wrote: