File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ 2013-09-28 Romain Francois <romain@r-enthusiasts.com>
2+
3+ * inst/unitTests/cpp/Module.cpp: Making sure Rcp is not released before this
4+ is fixed
5+
162013-09-27 Dirk Eddelbuettel <edd@debian.org>
27
38 * vignettes/Rcpp-unitTests.Rnw: Re-activated vignette
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ class World {
6161public:
6262 World () : msg(" hello" ){}
6363 void set (std::string msg_) { this ->msg = msg_; }
64+ void set_ref (std::string& msg_) { this ->msg = msg_; }
65+ void set_const_ref (const std::string& msg_) { this ->msg = msg_; }
6466 std::string greet () { return msg; }
6567
6668private:
@@ -155,6 +157,8 @@ RCPP_MODULE(yada){
155157
156158 .method ( " greet" , &World::greet )
157159 .method ( " set" , &World::set )
160+ .method ( " set_ref" , &World::set_ref )
161+ .method ( " set_const_ref" , &World::set_const_ref )
158162 .method ( " clear" , &clearWorld )
159163 ;
160164
You can’t perform that action at this time.
0 commit comments