[C++-sig] Overriding Virtual Functions

Nathan Stewart swarfrat at gmail.com
Thu Mar 18 19:35:18 CET 2010

On Wed, Mar 17, 2010 at 11:53 PM, Nathan Stewart <swarfrat at gmail.com> wrote:

> In the second example... I know that the python function "OnEvent_TypeB"
> hasn't been created.  I don't get why it blows up in get_override rather
> than fails.  The other examples I've found indicate that I should be able to
> use that mechanism to provide access to the base class virtual functions
> which do have bodies. In fact, I'm running into this problem with my
> ConnectionWrap class, not something derived from it. Does the override need
> to exist, and if so, how can I accomplish this goal (of only overriding
> behavior I want to implement)?
On further exploration, I'm wondering if this is not a threading issue
rather than a virtual function override issue, given that my example is a
callback system, however my base Connection class has it's own locking that
prevents publish and onEvent from being run at the same time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100318/f107aec4/attachment.html>

More information about the Cplusplus-sig mailing list