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 <[email protected]> wrote:

> 
> On 20 April 2014 at 15:50, Venelin Mitov wrote:
> | So maybe something goes wrong if i pass const & as an argument :(.
> 
> Yes. For now, please remove the 'const' qualifier. 
> 
> I had a first look but don't yet see where this leads the compiler astray. 
> 
> Dirk
> 
> -- 
> Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to