> On Sun, 23 May 2010 16:31:02 +1000 Jarl Lindrud <jarl.lindrud@...>
> JL> I'm trying to wrap some shared_ptr based code, for use in C#. I've
> JL> to use SWIG_SHARED_PTR to successfully generate wrappers for
> JL> I have not been able to wrap a std::vector of shared_ptr's. Is this
> JL> possible
> Yes, it is, I'm doing this for many classes in my current project. I
> really show the complete working code because it uses some custom macros
> which will be really confusing but the main missing part in your example
> seems to be the missing SWIG_STD_VECTOR_ENHANCED invocation. E.g. I do
> SWIG_SHARED_PTR(Foo, Foo)
> %include "foo.h"
> %template(Foos) std::vector< boost::shared_ptr<Foo> >;
Thanks Vadim, SWIG_STD_VECTOR_ENHANCED was just what I needed.
Looks like this is a new feature... I had to upgrade from 1.3.39 to 1.3.40,
to find it.