[Rcpp-commits] r2951 - pkg/Rcpp/inst/include/Rcpp/module

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Apr 5 12:45:32 CEST 2011


Author: romain
Date: 2011-04-05 12:45:32 +0200 (Tue, 05 Apr 2011)
New Revision: 2951

Modified:
   pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h
Log:
more useful fix

Modified: pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h	2011-04-05 10:21:18 UTC (rev 2950)
+++ pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h	2011-04-05 10:45:32 UTC (rev 2951)
@@ -22,14 +22,14 @@
 #ifndef Rcpp_Module_generated_ctor_signature_h
 #define Rcpp_Module_generated_ctor_signature_h
 
-inline void ctor_signature( std::string& s, const std::string& ){
-    s.clear() ;
+inline void ctor_signature( std::string& s, const std::string& classname){
+    s.assign(classname) ;
     s+= "()" ; 
 }
 
 template <typename U0>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ")" ;
@@ -37,7 +37,7 @@
 
 template <typename U0, typename U1>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;
@@ -46,7 +46,7 @@
 
 template <typename U0, typename U1, typename U2>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;
@@ -56,7 +56,7 @@
 
 template <typename U0, typename U1, typename U2, typename U3>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;
@@ -67,7 +67,7 @@
 
 template <typename U0, typename U1, typename U2, typename U3, typename U4>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;
@@ -79,7 +79,7 @@
 
 template <typename U0, typename U1, typename U2, typename U3, typename U4, typename U5>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;
@@ -92,7 +92,7 @@
 
 template <typename U0, typename U1, typename U2, typename U3, typename U4, typename U5, typename U6>
 inline void ctor_signature( std::string& s, const std::string& classname ){
-    s.clear() ;
+    s.assign(classname) ;
     s += "(" ; 
     s += get_return_type<U0>() ;
     s += ", " ; s+= get_return_type<U1>() ;



More information about the Rcpp-commits mailing list