Roman Yakovenko wrote:
> 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.
> :-)
>
Yes, and luckily in this case the library behind the scenes will prevent
me from hanging myself with it. :)
Thanks,
Allen
|