I noticed that for Rcpp::Vector there is no const () operator. For example, <div><br></div><div>double foo(const Rcpp::Vector<REALSXP>& bar) { return bar(0); } </div><div><br></div><div>will fail. Is there a workaround for this? Thanks!</div>
<div><br></div><div>Cheers,</div><div>Jonathan</div>