[Rcpp-commits] r4281 - in pkg/Rcpp: . inst/include/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Mar 12 19:02:22 CET 2013
Author: romain
Date: 2013-03-12 19:02:21 +0100 (Tue, 12 Mar 2013)
New Revision: 4281
Modified:
pkg/Rcpp/ChangeLog
pkg/Rcpp/inst/include/Rcpp/Module.h
Log:
added virtual destructor to CppProperty
Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog 2013-03-12 17:59:41 UTC (rev 4280)
+++ pkg/Rcpp/ChangeLog 2013-03-12 18:02:21 UTC (rev 4281)
@@ -1,3 +1,7 @@
+2013-03-12 Romain Francois <romain at r-enthusiasts.com>
+
+ * include/Rcpp/Module.h: added virtual destructor to CppProperty
+
2013-03-08 Dirk Eddelbuettel <edd at debian.org>
* inst/include/Rcpp/platform/compiler.h: Improved g++ version
Modified: pkg/Rcpp/inst/include/Rcpp/Module.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/Module.h 2013-03-12 17:59:41 UTC (rev 4280)
+++ pkg/Rcpp/inst/include/Rcpp/Module.h 2013-03-12 18:02:21 UTC (rev 4281)
@@ -279,6 +279,7 @@
typedef Rcpp::XPtr<Class> XP ;
CppProperty(const char* doc = 0) : docstring( doc == 0 ? "" : doc ) {} ;
+ virtual ~CppProperty(){} ;
virtual SEXP get(Class* ) { throw std::range_error("cannot retrieve property"); }
virtual void set(Class*, SEXP) { throw std::range_error("cannot set property"); }
virtual bool is_readonly(){ return false; }
More information about the Rcpp-commits
mailing list