[C++-sig] Re: Boost: virtual inheritance

David Abrahams dave at boost-consulting.com
Sun Sep 7 18:56:40 CEST 2003

David Abrahams <dave at boost-consulting.com> writes:

>> It looks as if the virtual inheritance of Item is what is causing the
>> trouble. It appears as if the following is the relevant part of the
>> compilation error messsage:
>> /afs/cern.ch/sw/lcg/external/Boost/1.30.2/rh73_gcc32/boost/python/class.hpp:395: pointer
>>    to member conversion via virtual base `Item' of `Class'
>> Making the inheritance non-virtual makes the distilled example, at
>> least, work fine.
>> Any hints would be warmly appreciated.
> The quick workaround is:
>   .def("name", object(&Class::name))

This problem is now fixed in CVS.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list