On 1 September 2014 at 13:40, Dr Gregory Jefferis wrote:
| I'm not sure that I understand this point, but it may be what I have 
| already tried. What I was trying to do was write templated code, typedef 
| two separate types one for double, one for float and then export each of 
| them separately.

And I think I was trying to explain to you that 
 - becase _R_ only knows double and 
 - does dispatch by _name_ only 
there is no clean way in which _Rcpp_ can maintain these as two distinct
versions under the same name.  In short, just because you can template at the
C++ level does not mean that Rcpp can shoehorn both variants up to
R-accessibility. 

As always, I may of course be wrong and there might be a way. 

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to