Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr

To fix overloading when using these types.
This commit is contained in:
William S Fulton 2022-09-17 10:23:51 +01:00
commit e97181ebc0
59 changed files with 442 additions and 2 deletions

View file

@ -2,6 +2,8 @@
#if !(defined(SWIGGO) || defined(SWIGOCAML) || defined(SWIGR) || defined(SWIGSCILAB))
%warnfilter(509, 516) overloadTest(Klass);
%include "std_string.i"
%include "std_unique_ptr.i"
@ -88,6 +90,18 @@ std::unique_ptr<Klass> makeNullUniquePtr() {
return std::unique_ptr<Klass>();
}
int overloadTest() {
return 0;
}
int overloadTest(std::unique_ptr<Klass> kover) {
return 1;
}
int overloadTest(Klass k) {
return 2;
}
%}
#endif