[Rcpp-commits] r3907 - pkg/Rcpp/inst/include/Rcpp/internal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Nov 7 14:24:26 CET 2012


Author: romain
Date: 2012-11-07 14:24:26 +0100 (Wed, 07 Nov 2012)
New Revision: 3907

Modified:
   pkg/Rcpp/inst/include/Rcpp/internal/wrap.h
Log:
fix module_wrap so that parser builds again

Modified: pkg/Rcpp/inst/include/Rcpp/internal/wrap.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/internal/wrap.h	2012-11-07 01:29:23 UTC (rev 3906)
+++ pkg/Rcpp/inst/include/Rcpp/internal/wrap.h	2012-11-07 13:24:26 UTC (rev 3907)
@@ -820,7 +820,12 @@
 inline SEXP module_wrap( const T& obj ){
 	return module_wrap_dispatch<T>( obj, typename Rcpp::traits::module_wrap_traits<T>::category() ) ;	
 }
+template <>
+inline SEXP module_wrap<SEXP>( const SEXP& obj ){
+	return obj ;	
+}
 
+
 // special case - FIXME : this is not template specializations of wrap<>
 inline SEXP wrap(const char* const v ){ 
     if (v == NULL)



More information about the Rcpp-commits mailing list