Re: [C++-sig] Exposing simple polymorphism with boost python

2014-10-24 Thread Stefan Seefeld
On 23/10/14 03:38 AM, Erik Türke wrote: > Hi Python-Experts :-) > > > i am starting to get really frustrated trying to expose a simple C++ > polymorphism to python with boost::python. > I do have the following structure in C++: > > struct Base { > int typeID; > }; > > struct Der

[C++-sig] Exposing simple polymorphism with boost python

2014-10-23 Thread Erik Türke
Hi Python-Experts :-) i am starting to get really frustrated trying to expose a simple C++ polymorphism to python with boost::python. I do have the following structure in C++: struct Base { int typeID; }; struct Derived : public Base { int derivedProperty; }