Skip to content
Prev 5174 / 10988 Next

[Rcpp-devel] package with module not compiling on Mac

Hello,

I can reproduce the compiler error on my mac. If I comment the methods 
Swap and Etoile, then I can compile the package.

Now looking at the signatures:

cplfunction & Swap(double y) ;
cplfunction & Etoile() ;

I think the problem is that they return a reference. Looking at their 
code, it looks like they only ever return *this. Why are you doing this ?

I'd suggest you return void.

Romain

Le 29/01/13 16:04, Robin Girard a ?crit :