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:
Marcelo Matus 2005-10-18 14:16:22 +00:00
commit e707c456ef

View file

@ -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;
}