[Rcpp-commits] r2447 - scripts

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Nov 18 21:19:36 CET 2010


Author: romain
Date: 2010-11-18 21:19:36 +0100 (Thu, 18 Nov 2010)
New Revision: 2447

Modified:
   scripts/generator_Module_method.R
Log:
pass down the validator (small omission)

Modified: scripts/generator_Module_method.R
===================================================================
--- scripts/generator_Module_method.R	2010-11-18 20:19:03 UTC (rev 2446)
+++ scripts/generator_Module_method.R	2010-11-18 20:19:36 UTC (rev 2447)
@@ -92,25 +92,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