Re: [Rcpp-devel] Questions on extending Rcpp wrap and as with templates

2014-05-06 Thread Florian Burkart
Hi Romain, You are correct. I have changed to specializations as below. However, as to the return type, are you saying the header file then also becomes RcppExport std::vector< TimedOptDouble > GetSunPositions(SEXP a) instead of RcppExport SEXP GetSunPositions(SEXP a) ? Or do I leave the hea

Re: [Rcpp-devel] Questions on extending Rcpp wrap and as with templates

2014-05-06 Thread Romain Francois
Le 6 mai 2014 à 08:45, Florian Burkart a écrit : > Hi everyone (and Dirk), > > Second attempt on corrected email list. > > I have been trying to extend Rcpp with my own wrap and as templates. > > Two issues: > > 1) I need to explicitly call wrap. Is that expected? > > So for example I wrote

[Rcpp-devel] Questions on extending Rcpp wrap and as with templates

2014-05-05 Thread Florian Burkart
Hi everyone (and Dirk), Second attempt on corrected email list. I have been trying to extend Rcpp with my own wrap and as templates. Two issues: 1) I need to explicitly call wrap. Is that expected? So for example I wrote this specialization: template<> SEXP Rcpp::wrap(std::vector const& entri