Roman Yakovenko wrote:
Before I modified the code, I suggest you to submit a small working example which shows the problem, so we can solve the right problem.
Ok, here's a distilled code example. Running python dest.pypp && gcc -c -I/usr/include/python2.6 dest_bindings.cpp yields the error message dest.hh:3: virhe: ”virtual A::~A()” is protected This is with the latest svn version of py++. -- Pertti
class A { protected: virtual ~A(); }; class B { public: void f(A const & x); };
import pyplusplus mb = pyplusplus.module_builder.module_builder_t(["dest.hh"]) mb.build_code_creator( module_name="dest" ) mb.write_module("dest_bindings.cpp")
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig