Fixed bug [948583]

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Luigi Ballabio 2004-05-17 13:07:39 +00:00
commit d63e8e6fc3

View file

@ -167,9 +167,9 @@ namespace std {
for (unsigned int i=0; i<$1.size(); i++) {
T* ptr = new T((($1_type &)$1)[i]);
Tcl_ListObjAppendElement(interp, $result, \
SWIG_NewPointerObj(ptr,
$descriptor(T *),
0));
SWIG_NewInstanceObj(ptr,
$descriptor(T *),
0));
}
}