parser(C++11) : explicit template function support, see https://github.com/swig/swig/issues/2131
This commit is contained in:
parent
5656da3f31
commit
8be363eae3
3 changed files with 50 additions and 3 deletions
11
Examples/test-suite/python/cpp11_template_explicit_runme.py
Normal file
11
Examples/test-suite/python/cpp11_template_explicit_runme.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import cpp11_template_explicit
|
||||
|
||||
# Call variants of the same templated function
|
||||
t1 = cpp11_template_explicit.my_templated_function_int (1,1.0)
|
||||
t2 = cpp11_template_explicit.my_templated_function_A (2,2.0)
|
||||
t3 = cpp11_template_explicit.my_templated_function_TemperInt(3,3.0)
|
||||
|
||||
# Check return types
|
||||
assert isinstance(t1,int)
|
||||
assert isinstance(t2,cpp11_template_explicit.A)
|
||||
assert isinstance(t3,cpp11_template_explicit.TemperInt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue