[Rcpp-commits] r518 - pkg/src/Rcpp/internal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jan 30 19:00:13 CET 2010


Author: romain
Date: 2010-01-30 19:00:12 +0100 (Sat, 30 Jan 2010)
New Revision: 518

Modified:
   pkg/src/Rcpp/internal/wrap.h
Log:
wrap was pre-declared in the wrong namespace 

Modified: pkg/src/Rcpp/internal/wrap.h
===================================================================
--- pkg/src/Rcpp/internal/wrap.h	2010-01-30 17:50:20 UTC (rev 517)
+++ pkg/src/Rcpp/internal/wrap.h	2010-01-30 18:00:12 UTC (rev 518)
@@ -27,11 +27,13 @@
 // don't include it directly
 
 namespace Rcpp{
-namespace internal{
 
 // pre-declaring wrap :
 template <typename T> SEXP wrap(const T& object) ;
 
+namespace internal{
+
+
 // {{{ information about R vectors
 // welcome to template metaprogramming !!
 
@@ -149,7 +151,7 @@
 	SEXP x = PROTECT( Rf_allocVector( VECSXP, size ) );
 	size_t i =0 ;
 	while( i < size ){
-		SET_VECTOR_ELT( x, i, wrap(*first) ) ;
+		SET_VECTOR_ELT( x, i, ::Rcpp::wrap(*first) ) ;
 		i++ ;
 		++first ;
 	}



More information about the Rcpp-commits mailing list