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] 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