[Rcpp-devel] wrap returned pointer to class

2011-08-01 Thread Sebastian Weber
Hi, first of all thank you, Dirk and Romain, so much for this great library! I was stunned when I saw the examples. Hence, I started immediately a quite involved project which interfaces another library to R via C++. Currently I have the problem that I want to expose a function from a class wh

Re: [Rcpp-devel] wrap returned pointer to class

2011-08-01 Thread Dirk Eddelbuettel
Sebastuan, On 1 August 2011 at 18:07, Sebastian Weber wrote: | first of all thank you, Dirk and Romain, so much for this great library! I was stunned when I saw the examples. | | Hence, I started immediately a quite involved project which interfaces another library to R via C++. That should

Re: [Rcpp-devel] wrap returned pointer to class

2011-08-01 Thread Sebastian Weber
Hi! To answer my question: The issue was with constness of the pointer (there are a lot of variations of const pointers, saying wif the address or the object is const, but never got right behind that declaration mess...). So what did it in the end was to declare a wrap function which wraps the