[Rcpp-commits] r2672 - pkg/Rcpp/inst/include/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Dec 2 19:09:13 CET 2010
Author: dmbates
Date: 2010-12-02 19:09:12 +0100 (Thu, 02 Dec 2010)
New Revision: 2672
Modified:
pkg/Rcpp/inst/include/Rcpp/Function.h
Log:
operator() becomes const
Modified: pkg/Rcpp/inst/include/Rcpp/Function.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/Function.h 2010-12-02 18:08:56 UTC (rev 2671)
+++ pkg/Rcpp/inst/include/Rcpp/Function.h 2010-12-02 18:09:12 UTC (rev 2672)
@@ -71,11 +71,11 @@
*/
#ifdef HAS_VARIADIC_TEMPLATES
template<typename... Args>
- SEXP operator()( const Args&... args) /* throw(Evaluator::eval_error) */ {
+ SEXP operator()( const Args&... args) /* throw(Evaluator::eval_error) */ const {
return internal::try_catch( Rf_lcons( m_sexp, pairlist(args...) ) ) ;
}
#else
- SEXP operator()(){
+ SEXP operator()() const {
return internal::try_catch( Rf_lcons( m_sexp, R_NilValue ) ) ;
}
More information about the Rcpp-commits
mailing list