[Rcpp-devel] const operators

Jonathan Chang slycoder at gmail.com
Mon Jul 5 23:51:07 CEST 2010


I noticed that for Rcpp::Vector there is no const () operator.  For
example,

double foo(const Rcpp::Vector<REALSXP>& bar) {  return bar(0); }

will fail.  Is there a workaround for this?  Thanks!

Cheers,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20100705/618c28b4/attachment.htm>


More information about the Rcpp-devel mailing list