[Rcpp-devel] Broken conversion from R-type integer to uvec	after update to newer Rcpp version
    Mitov Venelin 
    vmitov at gmail.com
       
    Sun Apr 20 20:18:30 CEST 2014
    
    
  
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:
> 
> 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 | edd at debian.org | http://dirk.eddelbuettel.com
    
    
More information about the Rcpp-devel
mailing list