|
Boost : |
From: Nathan Myers (ncm-yahoospam_at_[hidden])
Date: 2002-01-01 19:56:35
David Abrahams wrote:
> ... is_compound is implemented thus:
>
> template <typename T> struct is_compound
> {
> BOOST_STATIC_CONSTANT(bool, value =
> (::boost::type_traits::ice_or<
> ::boost::is_array<T>::value,
> ::boost::is_pointer<T>::value,
> ::boost::is_reference<T>::value,
> ::boost::is_class<T>::value,
> ::boost::is_union<T>::value,
> ::boost::is_enum<T>::value,
> ::boost::is_member_pointer<T>::value
> >::value));
> };
Apologies if this is a dead horse, but what makes an enumeration a
compound type? Being convertible to and from int makes it seem pretty
scalar to me.
Nathan Myers
ncm at cantrip dot org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk