[Rcpp-commits] r1461 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jun 7 13:31:55 CEST 2010


Author: romain
Date: 2010-06-07 13:31:54 +0200 (Mon, 07 Jun 2010)
New Revision: 1461

Modified:
   pkg/Rcpp/src/Module.cpp
Log:
avoid some name clashes (suncc warnings)

Modified: pkg/Rcpp/src/Module.cpp
===================================================================
--- pkg/Rcpp/src/Module.cpp	2010-06-07 11:28:36 UTC (rev 1460)
+++ pkg/Rcpp/src/Module.cpp	2010-06-07 11:31:54 UTC (rev 1461)
@@ -143,9 +143,9 @@
 	Module::Module() : name(), functions(), classes() {}
 	Module::Module(const char* name_) : name(name_), functions(), classes() {}
 	
-	SEXP Module::invoke( const std::string& name, SEXP* args, int nargs){
+	SEXP Module::invoke( const std::string& name_, SEXP* args, int nargs){
 		BEGIN_RCPP
-			MAP::iterator it = functions.find( name );
+			MAP::iterator it = functions.find( name_ );
 			if( it == functions.end() ){
 				throw std::range_error( "no such function" ) ; 
 			}



More information about the Rcpp-commits mailing list