On 10/10/06, Allen Bierbaum <al...@vr...> wrote:
> Is there a way I can override Py++ and tell it not to generate a
> boost::python::pure_virtual on a member method?
f.virtuality = declaration.VIRTUALITY_TYPES.VIRTUAL
> 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.
Py++ & pygccxml gives you enough rope to shoot yourself in the foot.
:-)
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|