Re: [C++-sig] Inheritance problem

2011-10-14 Thread Holger Joukl
Hi, > Ok lets say my BaseClass has a member function called init( vector4 ): > > class Base > { > public: > void init( vector4 &vec ) { //doWhatEver } > //a lot of other functions > }; > > Unfortunetaly i can not expose this init function directly to python so > i am writing a BaseWrapp

Re: [C++-sig] Inheritance problem

2011-10-14 Thread Erik Türke
On 10/14/11 10:29, Holger Joukl wrote: Hi, currently i am facing a problem regarding inheritance with boost::python Here is a simple code snippet: class Base { public: virtual void print() { std::cout<< "hello"<< std::endl; } }; [...] And in python i want to have the following res

Re: [C++-sig] Inheritance problem

2011-10-14 Thread Holger Joukl
Hi, > currently i am facing a problem regarding inheritance with boost::python > > Here is a simple code snippet: > > > class Base > { > public: > virtual void print() { std::cout << "hello" << std::endl; } > > }; > > [...] > > And in python i want to have the following reslut: > > >>import