Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr
To fix overloading when using these types.
This commit is contained in:
parent
f0af17b324
commit
e97181ebc0
59 changed files with 442 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue