We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c595eb commit 30bd875Copy full SHA for 30bd875
ChangeLog
@@ -1,3 +1,8 @@
1
+2014-03-05 Kevin Ushey <[email protected]>
2
+
3
+ * inst/include/Rcpp/proxy/FieldProxy.h: bandaid for protection issue
4
+ in operator= of FieldProxy
5
6
2014-03-03 Kevin Ushey <[email protected]>
7
8
* inst/include/Rcpp/proxy/SlotProxy.h: Add missing const_SlotProxy ctor
inst/include/Rcpp/proxy/FieldProxy.h
@@ -35,8 +35,10 @@ class FieldProxyPolicy {
35
}
36
37
template <typename T> FieldProxy& operator=(const T& rhs) {
38
- set( wrap(rhs) );
39
- return *this;
+ SEXP tmp = PROTECT( wrap(rhs) );
+ set(tmp);
40
+ UNPROTECT(1);
41
+ return *this;
42
43
44
template <typename T> operator T() const {
0 commit comments