Skip to content

Commit 4309b1d

Browse files
committed
Fix for #133
1 parent f047f52 commit 4309b1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/include/Rcpp/RObject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ namespace Rcpp{
4646
/**
4747
* Assignement operator. Set this SEXP to the given SEXP
4848
*/
49-
RObject_Impl& operator=( SEXP other ){
49+
template <typename T>
50+
RObject_Impl& operator=(const T& other) {
5051
Storage::set__(other) ;
5152
return *this;
5253
}

0 commit comments

Comments
 (0)