Re: [C++-sig] More inheritance problems

2012-09-05 Thread Charly Bicker
Dear Holger, thank you for your reply! > Why is that needed? > >>> t = testInheritance.Third(testInheritance.Derived()) > her in reality an instance of DerivedWrapper is created, and then > passed to C++. When you then do `t.get_base()` and instance of > DerivedWrapper will be returned (there is

Re: [C++-sig] More inheritance problems

2012-09-04 Thread Holger Brandsmeier
Dear Karl, the problem is fixed if you do the following: bp::class_("Base", bp::no_init) .def("do_stuff", bp::pure_virtual(&BaseWrapper::do_stuff)) .def("name", &BaseWrapper::name, &BaseWrapper::default_name) .def("name", &Base::name) ;

[C++-sig] More inheritance problems

2012-09-04 Thread Charly Bicker
Dear all, first of all thanks to Holger for pointing me to a workaround with the add_static_property problem! Unfortunately, I already ran into the next problem, which seems very weird to me: I have again my old friends Base and Derived, with the obvious inheritance (source file attached). No