text: 
  Strange cross platform inconsistencies:
  Is it possible to wrap std::vector<int> as a normal Python List on windows?
  so I can do
  for i in anIntVector: print i
  rather than
  it = anIntVector.begin()
  while it != anIntVector.end(): print it.value()
  I got this to happen on linux easily using same interface file as I do
  on windows. using swig2.0.4 on both OS. easy enough to write a generator
  or whatever, but dont understand why it works on linux and not windows!
  /* TheProject.i */
  %{
  /* Put header files here or function declarations like below */
  #include "Metrics.h"
  #include "Colors.h"
  %}
  /* sure i don't need half of these! */
  %include windows.i
  %include stl.i
  %include typemaps.i
  %include std_vector.i
  %typemap(csbase) ColorNames "uint"
  /* instantiate the required template specializations */
  namespace std {
  %template(IntVector) vector<int>;
  %template(DoubleVector) vector<double>;
  }
  %include "Metrics.h"
  %include "Colors.h"
  (Interface also used for C#)
  I also have the types IntVector and DoubleVector typedef-ed in the C++
  source, in case that could cause any issue.
  Cheers in advance!
  Chris
  I think swig is excellent.what confuse me is that there is a DISOWN typemap,
  but there is no OWN typemap or ACQUIRE.I didn't find it in the
  documentation.
  Maybe I can write a function like this:
  %newobject acquire;
  Klass* acquire(Klass* a);
  It returns self.
  But when I track objects, it may bug.
  Besides, I need a function to ensure that the object passed has ownership(or
  not have).I didn't find it in the doc. HELP!
  I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details