File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,14 @@ namespace Rcpp {
217
217
setBuffer (); buffer += CHAR (proxy_sexp); valid = false ;
218
218
return *this ;
219
219
}
220
+ inline String& operator +=(const const_StringProxy& proxy) {
221
+ RCPP_STRING_DEBUG (" String::operator+=(const StringProxy&)" );
222
+ if (is_na ()) return *this ;
223
+ SEXP proxy_sexp = proxy;
224
+ if (proxy_sexp == NA_STRING) { data = Rcpp_ReplaceObject (data, NA_STRING); valid = true ; buffer_ready = false ; return *this ;}
225
+ setBuffer (); buffer += CHAR (proxy_sexp); valid = false ;
226
+ return *this ;
227
+ }
220
228
inline String& operator +=(SEXP x) {
221
229
RCPP_STRING_DEBUG (" String::operator+=(SEXP)" );
222
230
if (is_na ()) return *this ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class Proxy_Iterator {
112
112
113
113
inline int index () const { return proxy.index ; }
114
114
115
- inline PROXY operator [](R_xlen_t i){ return PROXY (*proxy.parent , proxy.index + i) ; }
115
+ inline PROXY operator [](R_xlen_t i) const { return PROXY (*proxy.parent , proxy.index + i) ; }
116
116
117
117
private:
118
118
PROXY proxy ;
You can’t perform that action at this time.
0 commit comments