[Rcpp-commits] r488 - in pkg/src: . Rcpp

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 27 22:57:57 CET 2010


Author: romain
Date: 2010-01-27 22:57:57 +0100 (Wed, 27 Jan 2010)
New Revision: 488

Modified:
   pkg/src/CharacterVector.cpp
   pkg/src/Rcpp/CharacterVector.h
Log:
adding a const

Modified: pkg/src/CharacterVector.cpp
===================================================================
--- pkg/src/CharacterVector.cpp	2010-01-27 19:46:10 UTC (rev 487)
+++ pkg/src/CharacterVector.cpp	2010-01-27 21:57:57 UTC (rev 488)
@@ -115,7 +115,7 @@
 	if( update ) setSEXP( x ) ;
 }
 	
-CharacterVector::CharacterVector( const char** first, const char** last) : VectorBase(){
+CharacterVector::CharacterVector( const char** const first, const char** const last) : VectorBase(){
 	assign( first, last ) ;
 }
 

Modified: pkg/src/Rcpp/CharacterVector.h
===================================================================
--- pkg/src/Rcpp/CharacterVector.h	2010-01-27 19:46:10 UTC (rev 487)
+++ pkg/src/Rcpp/CharacterVector.h	2010-01-27 21:57:57 UTC (rev 488)
@@ -84,7 +84,7 @@
 	StringProxy operator()( const size_t& i) throw(index_out_of_bounds) ;
 	StringProxy operator()( const size_t& i, const size_t& j) throw(index_out_of_bounds,not_a_matrix) ;
 
-	void assign( const char** first, const char** last) ; 
+	void assign( const char** const first, const char** const last) ; 
 	
 	template <typename InputIterator>
 	void assign( InputIterator first, InputIterator last){



More information about the Rcpp-commits mailing list