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 03d5d89 commit e1e885fCopy full SHA for e1e885f
inst/include/Rcpp/api/meat/protection.h
@@ -28,7 +28,7 @@ namespace Rcpp{
28
29
template <typename T>
30
template <typename U>
31
- inline Armor<T>& Armor<T>::operator=( U x ){
+ inline Armor<T>& Armor<T>::operator=( const U& x ){
32
REPROTECT(data = wrap(x), index) ;
33
return *this ;
34
}
inst/include/Rcpp/protection/Armor.h
@@ -35,7 +35,7 @@ namespace Rcpp {
35
36
37
38
- inline Armor& operator=( U x ) ;
+ inline Armor& operator=( const U& x ) ;
39
40
~Armor(){
41
UNPROTECT(1) ;
0 commit comments