[Boost-bugs] [Boost C++ Libraries] #6394: Strongly typed enum not recognized by boost::is_enum

Subject: [Boost-bugs] [Boost C++ Libraries] #6394: Strongly typed enum not recognized by boost::is_enum
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-12 17:26:17


#6394: Strongly typed enum not recognized by boost::is_enum
--------------------------------------+-------------------------------------
 Reporter: tommitissari@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
--------------------------------------+-------------------------------------
 Using Intel c++ compiler XE 12.1 the new c++11 strongly typed enum type
 isn't recognized by boost::is_enum. It is recognized by std::is_enum
 though:


 {{{
 #include <iostream>
 #include <type_traits>
 #include <boost/type_traits.hpp>
 //...
 enum class StrongEnum { first, second };
 std::cout << boost::is_enum<StrongEnum>::value << std::endl;
 std::cout << std::is_enum<StrongEnum>::value << std::endl;
 }}}


 The output is:[[BR]]
 0[[BR]]
 1

 Notice that the same bug is probably the reason why boost serialization
 for strongly typed enum's doesn't work either.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6394>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC