|
Boost : |
Subject: Re: [boost] is_virtual_base_of ?
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-03-11 13:14:39
Robert Ramey wrote:
I'm still having some problems with this. Some compilers are flaging as an
error
the case where B doesn't have a default constructor.
Robert Ramey
>> template< typename D, typename B >
>> struct is_virtual_base_of
>> {
>> struct X : D, virtual B {};
>> enum { value = sizeof(X)==sizeof(D) };
>> };
>>
>> template< typename T >
>> struct is_virtual_base_of< T, T >
>> {
>> enum { value = false };
>> };
>>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk