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
|
|
@ -100,6 +100,18 @@ takeKlassUniquePtr(null);
|
|||
takeKlassUniquePtr(null_ptr);
|
||||
checkCount(0);
|
||||
|
||||
# overloaded parameters
|
||||
if (overloadTest() != 0)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
if (overloadTest(null) != 1)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
if (overloadTest(Klass("over")) != 1)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
checkCount(0);
|
||||
|
||||
|
||||
# unique_ptr as output
|
||||
k1 = makeKlassUniquePtr("first");
|
||||
|
|
|
|||
|
|
@ -100,6 +100,18 @@ takeKlassAutoPtr(null);
|
|||
takeKlassAutoPtr(null_ptr);
|
||||
checkCount(0);
|
||||
|
||||
# overloaded parameters
|
||||
if (overloadTest() != 0)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
if (overloadTest(null) != 1)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
if (overloadTest(Klass("over")) != 1)
|
||||
error("overloadTest failed");
|
||||
endif
|
||||
checkCount(0);
|
||||
|
||||
|
||||
# auto_ptr as output
|
||||
k1 = makeKlassAutoPtr("first");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue