[Rcpp-commits] r2446 - pkg/Rcpp/inst/include/Rcpp/module
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Nov 18 21:19:03 CET 2010
Author: romain
Date: 2010-11-18 21:19:03 +0100 (Thu, 18 Nov 2010)
New Revision: 2446
Modified:
pkg/Rcpp/inst/include/Rcpp/module/Module_generated_method.h
Log:
pass down the validator for dispatch
Modified: pkg/Rcpp/inst/include/Rcpp/module/Module_generated_method.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/Module_generated_method.h 2010-11-18 20:17:45 UTC (rev 2445)
+++ pkg/Rcpp/inst/include/Rcpp/module/Module_generated_method.h 2010-11-18 20:19:03 UTC (rev 2446)
@@ -24,25 +24,25 @@
template <typename OUT>
self& method( const char* name_, OUT (Class::*fun)(void), ValidMethod valid = &yes ){
- AddMethod( name_, new CppMethod0<Class,OUT>( fun ) ) ;
+ AddMethod( name_, new CppMethod0<Class,OUT>( fun ), valid ) ;
return *this ;
}
template <typename OUT>
self& method( const char* name_, OUT (Class::*fun)(void) const, ValidMethod valid = &yes ){
- AddMethod( name_, new const_CppMethod0<Class,OUT>( fun ) ) ;
+ AddMethod( name_, new const_CppMethod0<Class,OUT>( fun ) , valid) ;
return *this ;
}
template <typename OUT>
self& nonconst_method( const char* name_, OUT (Class::*fun)(void), ValidMethod valid = &yes ){
- AddMethod( name_, new CppMethod0<Class,OUT>( fun ) ) ;
+ AddMethod( name_, new CppMethod0<Class,OUT>( fun ), valid ) ;
return *this ;
}
template <typename OUT>
self& const_method( const char* name_, OUT (Class::*fun)(void) const, ValidMethod valid = &yes ){
- AddMethod( name_, new const_CppMethod0<Class,OUT>( fun ) ) ;
+ AddMethod( name_, new const_CppMethod0<Class,OUT>( fun ), valid ) ;
return *this ;
}
More information about the Rcpp-commits
mailing list