Keep the old non-resolved type str and add the fully
resolved one if is needed. Add examples showing the problem with SWIG_TypeQuery and template+typedef and the old type str, and how it works now. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9f9e05ad30
commit
d29dbe752d
4 changed files with 58 additions and 15 deletions
|
|
@ -31,3 +31,15 @@ except:
|
|||
print g, "is not an instance"
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
# the old large format
|
||||
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<vfncs::arith_traits<float,float>::argument_type,vfncs::arith_traits<float,float >::result_type > *"):
|
||||
raise RuntimeError
|
||||
|
||||
# the reduced format
|
||||
if not SWIG_TypeQuery("vfncs::ArithUnaryFunction<double,double> *"):
|
||||
raise RuntimeError
|
||||
|
||||
# this is a bad name
|
||||
if SWIG_TypeQuery("vfncs::ArithUnaryFunction<double,doublex> *"):
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue