On Jul 23, 2010, at 3:55 PM, Jim Bosch wrote:
> Try this:
>
> BOOST_PYTHON_MODULE(foo) {
>class_("Base")
> .def("f", pure_virtual(&Base::f));
>class_ > ("Derived")
> .def("f",&Derived::f);
>def("func", func, "Calls the method f of its argument");
> }
>
> (just swap the ord
On 07/23/2010 03:09 PM, Lutz Maibaum wrote:
Dear all,
I am totally new to Boost.Python, and I am going through the tutorial to get up
to speed. I apologize if this is a very obvious question.
class Base {
public:
virtual int f() = 0;
};
class Derived : public Base {
public:
int f() {