[Rcpp-commits] r2998 - pkg/Rcpp/inst/unitTests/testRcppModule/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Apr 12 10:25:54 CEST 2011
Author: romain
Date: 2011-04-12 10:25:53 +0200 (Tue, 12 Apr 2011)
New Revision: 2998
Modified:
pkg/Rcpp/inst/unitTests/testRcppModule/src/stdVector.cpp
Log:
trying somethiong
Modified: pkg/Rcpp/inst/unitTests/testRcppModule/src/stdVector.cpp
===================================================================
--- pkg/Rcpp/inst/unitTests/testRcppModule/src/stdVector.cpp 2011-04-12 03:03:58 UTC (rev 2997)
+++ pkg/Rcpp/inst/unitTests/testRcppModule/src/stdVector.cpp 2011-04-12 08:25:53 UTC (rev 2998)
@@ -21,6 +21,8 @@
obj->at( i ) = value ;
}
+void vec_resize( vec* obj, int n){ obj->resize( n ) ; }
+
RCPP_MODULE(stdVector){
using namespace Rcpp ;
@@ -33,7 +35,7 @@
// exposing member functions
.method( "size", &vec::size)
.method( "max_size", &vec::max_size)
- .method( "resize", &vec::resize)
+ .method( "resize", &vec_resize)
.method( "capacity", &vec::capacity)
.method( "empty", &vec::empty)
.method( "reserve", &vec::reserve)
More information about the Rcpp-commits
mailing list