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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 23 11:19:08 CET 2010


Author: romain
Date: 2010-03-23 11:19:08 +0100 (Tue, 23 Mar 2010)
New Revision: 937

Modified:
   pkg/Rcpp/src/Rcpp/Vector.h
Log:
not trusting the Base constructor

Modified: pkg/Rcpp/src/Rcpp/Vector.h
===================================================================
--- pkg/Rcpp/src/Rcpp/Vector.h	2010-03-23 10:15:10 UTC (rev 936)
+++ pkg/Rcpp/src/Rcpp/Vector.h	2010-03-23 10:19:08 UTC (rev 937)
@@ -482,8 +482,8 @@
     	RCPP_DEBUG( "~Vector()" ) ;
 	};
     
-	Vector( const Vector& other) : Base(other.asSexp()) {
-		update() ;
+	Vector( const Vector& other) : Base() {
+		Base::setSEXP(other.asSexp()) ;
 	}
 	
 	Vector& operator=( const Vector& other ){



More information about the Rcpp-commits mailing list