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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Mar 7 14:08:48 CET 2010


Author: romain
Date: 2010-03-07 14:08:48 +0100 (Sun, 07 Mar 2010)
New Revision: 848

Modified:
   pkg/Rcpp/src/Rcpp/StringTransformer.h
Log:
pass by reference to const

Modified: pkg/Rcpp/src/Rcpp/StringTransformer.h
===================================================================
--- pkg/Rcpp/src/Rcpp/StringTransformer.h	2010-03-07 13:02:16 UTC (rev 847)
+++ pkg/Rcpp/src/Rcpp/StringTransformer.h	2010-03-07 13:08:48 UTC (rev 848)
@@ -44,7 +44,7 @@
 	} ;
 	
 	template <typename UnaryOperator>
-	StringTransformer<UnaryOperator> make_string_transformer( UnaryOperator fun){
+	StringTransformer<UnaryOperator> make_string_transformer( const UnaryOperator& fun){
 		return StringTransformer<UnaryOperator>( fun ) ;
 	} ;
 	



More information about the Rcpp-commits mailing list