Boost logo

Boost :

From: Sebastien Martel (smartel_at_[hidden])
Date: 2002-10-23 12:34:55


>
> template< typename T, typename = T>
> struct is_incomplete
> {
> BOOST_STATIC_CONSTANT(bool, value = true);
> };
>
> template< typename T >
> struct is_incomplete<
> T
> , typename identity_if< T, sizeof(T) >::type
> >
> {
> BOOST_STATIC_CONSTANT(bool, value = false);
> };
>

For an incomplete type, isn't sizeof undefined (standard 5.3.3 par. 1) ?

-Sebastien Martel
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk