
11 Mar
2009
11 Mar
'09
5:14 p.m.
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 }; };