File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments