diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2017-09-23 14:46:44 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2017-09-23 15:19:34 +0100 |
commit | ed4b84f4d3912a29e03aa1c0a9e8160a884e09d7 (patch) | |
tree | 20b5184f018d462bcfd60c258e3e1086b1cddd1c /Lib/r | |
parent | f5e18566507133b6d4ed03035dbca9ee3c1553c7 (diff) | |
download | swig-ed4b84f4d3912a29e03aa1c0a9e8160a884e09d7.tar.gz |
Fix overloading of shared_ptr method overloading
Add 'equivalent' attribute to typecheck typemap.
Closes #1098.
Diffstat (limited to 'Lib/r')
-rw-r--r-- | Lib/r/boost_shared_ptr.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/r/boost_shared_ptr.i b/Lib/r/boost_shared_ptr.i index 4a56d7cba..a7b0df1f2 100644 --- a/Lib/r/boost_shared_ptr.i +++ b/Lib/r/boost_shared_ptr.i @@ -281,7 +281,7 @@ // Typecheck typemaps // Note: SWIG_ConvertPtr with void ** parameter set to 0 instead of using SWIG_ConvertPtrAndOwn, so that the casting // function is not called thereby avoiding a possible smart pointer copy constructor call when casting up the inheritance chain. -%typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER,noblock=1) +%typemap(typecheck, precedence=SWIG_TYPECHECK_POINTER, equivalent="TYPE *", noblock=1) TYPE CONST, TYPE CONST &, TYPE CONST *, |