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

Re: [C++-sig] Inheriting static overloaded properties

2012-09-04 Thread Holger Brandsmeier
Dear Karl, your problem does not occur if you do the following, bp::class_("Base") .add_static_property("debug", &Base::debug, &Base::setDebug); bp::class_ >("Derived") .add_static_property("debug2", &Derived::debug, &Derived::setDebug); Note that I called the property "d

[C++-sig] Inheriting static overloaded properties

2012-09-04 Thread Charly Bicker
Dear all, I am working in the following scenario: I have a class "Derived" which inherits from "Base" and wrappers for both. Both have their own static debug flag and getters and setters for it (see code at the end of the mail). I try to use ".add_static_property" to make the debug flags visibl