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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 20 03:16:11 CET 2010


Author: edd
Date: 2010-01-20 03:16:11 +0100 (Wed, 20 Jan 2010)
New Revision: 410

Modified:
   pkg/src/Rcpp/ExpressionVector.h
   pkg/src/RcppCommon.h
Log:
g++ complains these additional const argument when I build mvabund (one of the Rcpp using CRAN packages)


Modified: pkg/src/Rcpp/ExpressionVector.h
===================================================================
--- pkg/src/Rcpp/ExpressionVector.h	2010-01-19 15:03:24 UTC (rev 409)
+++ pkg/src/Rcpp/ExpressionVector.h	2010-01-20 02:16:11 UTC (rev 410)
@@ -41,7 +41,7 @@
 	public:
 		parse_error() throw();
 		virtual ~parse_error() throw();
-		virtual const char* const what() throw() ;
+	        virtual const char* /*const*/ what() throw() ;
 	} ;
 	
 	/* much inspired from item 30 of more effective C++ */

Modified: pkg/src/RcppCommon.h
===================================================================
--- pkg/src/RcppCommon.h	2010-01-19 15:03:24 UTC (rev 409)
+++ pkg/src/RcppCommon.h	2010-01-20 02:16:11 UTC (rev 410)
@@ -86,7 +86,7 @@
 RcppExport SEXP test_named() ;
 RcppExport SEXP capabilities() ;
 
-const char * const sexp_to_name(int sexp_type); 
+const char * /*const*/ sexp_to_name(int sexp_type); 
 
 RcppExport SEXP initRcpp() ;
 #endif



More information about the Rcpp-commits mailing list