Hi,

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:
Hi,

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?

Thanks,
Bob

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Swig-user mailing list
Swig-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user