On Jul 23, 2010, at 3:55 PM, Jim Bosch wrote:
> Try this:
> 
> BOOST_PYTHON_MODULE(foo) {
>    class_<BaseWrap, boost::noncopyable>("Base")
>      .def("f", pure_virtual(&Base::f));
>    class_<Derived, bases<Base>  >  ("Derived")
>      .def("f",&Derived::f);
>    def("func", func, "Calls the method f of its argument");
> }
> 
> (just swap the order of the class_ statements)

Fantastic! That works like charm.

Thank you very much,

  Lutz

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to