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 wrote: > > On 8 February 2013 at 08:11, Romain Francois wrote: > | Thanks. I will fix it. >

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 Eddelbuett

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 ma

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 a écrit : > This morning I was frustrated by a compilation error, below is a scratch of > the problem > > // MyClass1.h > template > class MyClass {/*...*/}; > > #include > namespace R

[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 class MyClass {/*...*/};#include namespace Rcpp {template inline SEXP wrap(const MyClass1 &object) {/* ... */}}#include //...// MyClass2.h Similar to MyClass1.h// some.cpp#include "MyClass1