Skip to content

Commit 2088577

Browse files
committed
Add missing proxy wrapper method
This should fix compiler ambiguities when wrapping proxy objects.
1 parent 25a35c8 commit 2088577

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/include/Rcpp/macros/interface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ __CLASS__( const __CLASS__& other ){ \
3030
__CLASS__& operator=(const __CLASS__& rhs) { \
3131
return Storage::copy__(rhs) ; \
3232
} \
33+
template <typename Proxy> \
34+
__CLASS__( const GenericProxy<Proxy>& proxy ){ \
35+
Storage::set__( proxy.get() ) ; \
36+
}
3337

3438
#define RCPP_API_CLASS(__CLASS__) \
3539
template < template <class> class StoragePolicy > class __CLASS__ : \

0 commit comments

Comments
 (0)