[Rcpp-commits] r950 - pkg/Rcpp/src/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Mar 30 08:24:15 CEST 2010
Author: romain
Date: 2010-03-30 08:24:15 +0200 (Tue, 30 Mar 2010)
New Revision: 950
Modified:
pkg/Rcpp/src/Rcpp/Vector.h
Log:
adding return *this in assignment operator (thanks Doug)
Modified: pkg/Rcpp/src/Rcpp/Vector.h
===================================================================
--- pkg/Rcpp/src/Rcpp/Vector.h 2010-03-27 03:37:30 UTC (rev 949)
+++ pkg/Rcpp/src/Rcpp/Vector.h 2010-03-30 06:24:15 UTC (rev 950)
@@ -487,7 +487,8 @@
}
Vector& operator=( const Vector& other ){
- Base::setSEXP( other.asSexp() ) ;
+ Base::setSEXP( other.asSexp() ) ;
+ return *this ;
}
Vector( SEXP x ) : Base() {
More information about the Rcpp-commits
mailing list