From: Vadim Z. <vz...@ze...> - 2010-05-25 17:53:07
|
Hello, I've updated to r12045 to test the latest shared-pointer-related changes and the new %shared_ptr looks great, it's much better than the old SWIG_SHARED_PTR and especially SWIG_SHARED_PTR_DERIVED hacks. Unfortunately it doesn't seem to work for me when wrapping vectors of shared_ptr, here is the most trivial example possible: $ cat vec_ptr.i %module vec_ptr; %include "boost_shared_ptr.i" %include "std_vector.i" %shared_ptr(Foo); %template(Foos) std::vector< boost::shared_ptr<Foo> >; $ swig -c++ -csharp vec_ptr.i vec_ptr.i(4) : Error: Recursive $typemap calls not supported - $typemap(cstype, Foo) vec_ptr.i(4) : Error: Recursive $typemap calls not supported - $typemap(cstype, Foo) Thanks in advance for any fixes or ideas of workarounds, VZ |