[C++-sig] How do I wrap virtual methods (solved)

David Abrahams dave at boost-consulting.com
Fri Aug 5 23:05:27 CEST 2005


Eric Jardim <ericjardim at gmail.com> writes:

> 2005/8/5, David Abrahams <dave at boost-consulting.com>:
>> 
>> It doesn't. QObject_Wrapper is only needed when the virtual function
>> might be overridden in Python. By the time you have a native QObject,
>> all of its class' virtual functions are already determined.
>> 
>
> Sure, but how does Boost.Python knows that I am exposing QObject? I am 
> exposing a derived class of it (QObject_wrapper). Someway, it knows that, 
> implicitly, QObject must me exposed too.

It knows that QObject_wrapper is derived from wrapper<QObject>.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list