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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Mar 7 14:18:38 CET 2010


Author: romain
Date: 2010-03-07 14:18:38 +0100 (Sun, 07 Mar 2010)
New Revision: 849

Modified:
   pkg/Rcpp/src/Rcpp/StringTransformer.h
Log:
also init buffer in init list

Modified: pkg/Rcpp/src/Rcpp/StringTransformer.h
===================================================================
--- pkg/Rcpp/src/Rcpp/StringTransformer.h	2010-03-07 13:08:48 UTC (rev 848)
+++ pkg/Rcpp/src/Rcpp/StringTransformer.h	2010-03-07 13:18:38 UTC (rev 849)
@@ -29,7 +29,7 @@
 	template <typename UnaryOperator>
 	class StringTransformer : public std::unary_function<const char*, const char*>{
 		public:
-		StringTransformer( const UnaryOperator& op_ ): op(op_){}
+		StringTransformer( const UnaryOperator& op_ ): op(op_), buffer(){}
 		~StringTransformer(){}
 		
 		const char* operator()(const char* input ) {



More information about the Rcpp-commits mailing list