[Rcpp-devel] A though on Rcpp::wrap

2013-02-08 Thread Yan Zhou
This morning I was frustrated by a compilation error, below is a scratch of the problem// MyClass1.htemplate typename Tclass MyClass {/*...*/};#include RcppCommon.hnamespace Rcpp {template typename T inline SEXP wrap(const MyClass1T object) {/* ... */}}#include Rcpp.h//...// MyClass2.h Similar to

Re: [Rcpp-devel] A though on Rcpp::wrap

2013-02-08 Thread Romain Francois
Thank you for this detailed email, i will study it carefully. Romain Le 8 févr. 2013 à 13:16, Yan Zhou zhou...@me.com a écrit : This morning I was frustrated by a compilation error, below is a scratch of the problem // MyClass1.h template typename T class MyClass {/*...*/};

Re: [Rcpp-devel] expecting a string and not finding it in a CharacterVector

2013-02-08 Thread Dirk Eddelbuettel
On 8 February 2013 at 08:11, Romain Francois wrote: | Thanks. I will fix it. And proceeds to do so with a one-liner :) Thanks for putting the fix in. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel

Re: [Rcpp-devel] A though on Rcpp::wrap

2013-02-08 Thread Dirk Eddelbuettel
On 8 February 2013 at 14:53, Romain Francois wrote: | | Thank you for this detailed email, i will study it carefully. Seconded. Nothing like a fresh set of eyes. Thanks also for the suggestion to re-word / re-work the vignette. Maybe we can deal with that off-list? Dirk -- Dirk

Re: [Rcpp-devel] expecting a string and not finding it in a CharacterVector

2013-02-08 Thread Davor Cubranic
That fixed just the runtime fault in as, right? Or did it somehow also take care of ctor for const string from an element of const CharacterVector? Davor On 2013-02-08, at 6:10 AM, Dirk Eddelbuettel e...@debian.org wrote: On 8 February 2013 at 08:11, Romain Francois wrote: | Thanks. I will