[pygccxml-development] Preventing Py++ from adding pure_virtual to a method
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2006-10-10 12:48:55
|
Is there a way I can override Py++ and tell it not to generate a boost::python::pure_virtual on a member method? I know that normally this would be a bad idea, but I have a case where I am only dealing with derived types and for some reason when the pure_virtual is there it causes all calls to that method to fail with "RuntimeError: Pure virtual function called". When I remove the pure_virtual call from the bindings, everything works as expected. Also for this library this is fine because objects can only be created through factory methods and the system will not allow creation of any of the base classes with pure virtual methods. -Allen |