Boost logo

Boost :

Subject: Re: [boost] [type_traits] is_enum on scoped enums doesn't works as expected
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-08-21 05:41:34


Le 21/08/11 11:26, Vicente J. Botet Escriba a écrit :
> Hi,
>
> The following file fails to compile under clang 2.9 c++0x
>
> #include <boost/static_assert.hpp>
> #include <boost/type_traits/is_enum.hpp>
>
> enum E {E_a,E_b,E_c};
> BOOST_STATIC_ASSERT((boost::is_enum<E>::value));
> enum class EC {a,b,c};
> BOOST_STATIC_ASSERT((boost::is_enum<EC>::value));
>
> //#include <type_traits>
>
>
BTW,

this file compiles well on mingw with gcc-4.5.0,4.5.2,4.6.0 on c++0x mode.

Best,
Vicente


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