[Rcpp-commits] r4587 - in pkg/Rcpp: . inst/include/Rcpp/protection
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Oct 28 08:03:44 CET 2013
Author: romain
Date: 2013-10-28 08:03:44 +0100 (Mon, 28 Oct 2013)
New Revision: 4587
Modified:
pkg/Rcpp/ChangeLog
pkg/Rcpp/inst/include/Rcpp/protection/Armor.h
Log:
operator SEXP has to be const for it to work with wrap
Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog 2013-10-27 22:54:07 UTC (rev 4586)
+++ pkg/Rcpp/ChangeLog 2013-10-28 07:03:44 UTC (rev 4587)
@@ -1,3 +1,8 @@
+2013-10-28 Romain Francois <romain at r-enthusiasts.com>
+
+ * include/Rcpp/protection/Armor.h : Armor::operator SEXP has to be const
+ for it to work properly with wrap.
+
2013-10-27 Dirk Eddelbuettel <edd at debian.org>
* DESCRIPTION: Release 0.10.6
Modified: pkg/Rcpp/inst/include/Rcpp/protection/Armor.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/protection/Armor.h 2013-10-27 22:54:07 UTC (rev 4586)
+++ pkg/Rcpp/inst/include/Rcpp/protection/Armor.h 2013-10-28 07:03:44 UTC (rev 4587)
@@ -30,7 +30,7 @@
template <typename U> Armor( U x );
- inline operator SEXP(){
+ inline operator SEXP() const {
return data ;
}
More information about the Rcpp-commits
mailing list