[Rcpp-commits] r1282 - in pkg/Rcpp/inst: . include/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed May 19 12:17:27 CEST 2010
Author: romain
Date: 2010-05-19 12:17:27 +0200 (Wed, 19 May 2010)
New Revision: 1282
Modified:
pkg/Rcpp/inst/ChangeLog
pkg/Rcpp/inst/include/Rcpp/as.h
Log:
please suncc
Modified: pkg/Rcpp/inst/ChangeLog
===================================================================
--- pkg/Rcpp/inst/ChangeLog 2010-05-19 10:08:24 UTC (rev 1281)
+++ pkg/Rcpp/inst/ChangeLog 2010-05-19 10:17:27 UTC (rev 1282)
@@ -1,6 +1,9 @@
2010-05-19 Romain Francois <romain at r-enthusiasts.com>
+ * inst/include/Rcpp/as.h: add throw specification to as specialization,
+ reported by suncc compiler on CRAN checks
+
* inst/include/Rcpp/Module.h : adding the concept of Rcpp modules, inspired
from boost.python
Modified: pkg/Rcpp/inst/include/Rcpp/as.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/as.h 2010-05-19 10:08:24 UTC (rev 1281)
+++ pkg/Rcpp/inst/include/Rcpp/as.h 2010-05-19 10:17:27 UTC (rev 1282)
@@ -75,7 +75,7 @@
return internal::as<T>( m_sexp, typename traits::r_type_traits<T>::r_category() ) ;
}
-template<> inline SEXP as(SEXP m_sexp) { return m_sexp ; }
+template<> inline SEXP as(SEXP m_sexp) throw(not_compatible) { return m_sexp ; }
} // Rcpp
More information about the Rcpp-commits
mailing list