
21 Aug
2011
21 Aug
'11
9:41 a.m.
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