Skip to content

Commit a583db2

Browse files
no meat in NodeProxy. #104
1 parent bd56309 commit a583db2

3 files changed

Lines changed: 9 additions & 30 deletions

File tree

inst/include/Rcpp/api/meat/NodeProxy.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

inst/include/Rcpp/api/meat/meat.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define Rcpp_api_meat_meat_h
33

44
#include <Rcpp/api/meat/structure.h>
5-
#include <Rcpp/api/meat/NodeProxy.h>
65
#include <Rcpp/api/meat/TagProxy.h>
76
#include <Rcpp/api/meat/ProtectedProxy.h>
87
#include <Rcpp/api/meat/StretchyList.h>

inst/include/Rcpp/proxy/NodeProxy.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ namespace Rcpp{
1717
}
1818

1919
template <typename T>
20-
ValueProxy& operator=( const T& rhs) ;
20+
ValueProxy& operator=( const T& rhs) {
21+
return set( wrap(rhs) ) ;
22+
}
2123

2224
template <typename T>
23-
operator T() const ;
25+
operator T() const {
26+
return as<T>(get());
27+
}
2428

2529
private:
2630
SEXP node ;
@@ -41,7 +45,9 @@ namespace Rcpp{
4145
const_ValueProxy(SEXP node_) : node(node_){}
4246

4347
template <typename T>
44-
operator T() const ;
48+
operator T() const {
49+
return as<T>(get());
50+
}
4551

4652
private:
4753
SEXP node ;

0 commit comments

Comments
 (0)