Try to use %template as below:
%template(MyObjectVector) std::vector<MyObject*>;

Zhenguo Wang

On Thu, Jun 30, 2011 at 9:26 AM, Bob R <bob@brasko.net> wrote:

I'm using swig to wrap a vector of class pointers from C++
to python. When I iterate over the list in python like so:
 for item in list:
I haven't been able to find how to apply any typemaps to
item on the way 'out' from C++ to python. I usually do this
to do automatic up and down casting.

Any one know how to apply an out typemap to the current
iterated item in this situation?


All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
Swig-user mailing list