more fixes for old Solaris compiler

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-18 08:17:23 +00:00
commit b9c30d7738
4 changed files with 31 additions and 11 deletions

View file

@ -20,9 +20,7 @@
# endif
#endif
#if defined(SWIG_EXPORT_ITERATOR_METHODS)
%include <pyiterators.swg>
#endif
/**** The PySequence C++ Wrap ***/
@ -520,7 +518,7 @@ namespace swig
%typemap(out,noblock=1,fragment="PySequence_Cont")
iterator, reverse_iterator, const_iterator, const_reverse_iterator {
$result = SWIG_NewPointerObj(swig::make_output_iterator((const $type &)$1),
$result = SWIG_NewPointerObj(swig::make_output_iterator(%static_cast($1,const $type &)),
swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
}
%typemap(out,noblock=1,fragment="PySequence_Cont")