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.
operator=
1 parent 0ed6d80 commit 01deea0Copy full SHA for 01deea0
1 file changed
inst/include/Rcpp/vector/string_proxy.h
@@ -44,7 +44,8 @@ namespace internal{
44
string_proxy( VECTOR& v, R_xlen_t index_ ) : parent(&v), index(index_){}
45
46
string_proxy( const string_proxy& other ) :
47
- parent(other.parent), index(other.index){} ;
+ parent(other.parent), index(other.index)
48
+ {} ;
49
50
/**
51
* lhs use. Assign the value of the referred element to
@@ -53,6 +54,11 @@ namespace internal{
53
54
*
55
* @param rhs another proxy, possibly from another vector
56
*/
57
+ string_proxy& operator=( const string_proxy<RTYPE, StoragePolicy>& other) {
58
+ set( other.get() ) ;
59
+ return *this ;
60
+ }
61
+
62
template <template <class> class StoragePolicy2>
63
string_proxy& operator=( const string_proxy<RTYPE, StoragePolicy2>& other) {
64
set( other.get() ) ;
0 commit comments