Re: [C++-sig] [Boost Python] Cannot call base method from within python extended class method

2015-01-13 Thread Holger Joukl
> > > For ElementWrap::get_float, try: > > > float get_float() { return this->get_override("get_float")(); } > > > > > > Binding to Python of that function should then be: > > > .def("get_float", pure_virtual(&Element::get_float)) > > > > > > See also: > > > http://www.boost.org/doc/libs/1_57_0/lib

Re: [C++-sig] [Boost Python] Cannot call base method from within python extended class method

2015-01-13 Thread Tiago Coutinho
Hi, On Tue, 2015-01-13 at 12:13 +0100, Holger Joukl wrote: > Hi, > > > For ElementWrap::get_float, try: > > float get_float() { return this->get_override("get_float")(); } > > > > Binding to Python of that function should then be: > > .def("get_float", pure_virtual(&Element::get_float)) > > > > S

Re: [C++-sig] [Boost Python] Cannot call base method from within python extended class method

2015-01-13 Thread Holger Joukl
Hi, > For ElementWrap::get_float, try: > float get_float() { return this->get_override("get_float")(); } > > Binding to Python of that function should then be: > .def("get_float", pure_virtual(&Element::get_float)) > > See also: > http://www.boost.org/doc/libs/1_57_0/libs/python/doc/tutorial/doc/