fix for template types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d94bb6260d
commit
e707c456ef
1 changed files with 2 additions and 2 deletions
|
|
@ -46,9 +46,9 @@
|
|||
%define %implicit_frag(Type...) ,fragment=SWIG_Traits_frag(Type) %enddef
|
||||
|
||||
%define %implicit_code(Type...)
|
||||
if (swig::asval<Type>(obj, 0)) {
|
||||
if (swig::asval<Type >(obj, 0)) {
|
||||
Type _v;
|
||||
swig::asval<Type>(obj, &_v);
|
||||
swig::asval<Type >(obj, &_v);
|
||||
if (val) *val = new value_type(_v);
|
||||
return SWIG_NEWOBJ;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue