Boost C++ Libraries: Ticket #6394: Strongly typed enum not recognized by boost::is_enum https://svn.boost.org/trac10/ticket/6394 <p> 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: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;type_traits&gt; #include &lt;boost/type_traits.hpp&gt; //... enum class StrongEnum { first, second }; std::cout &lt;&lt; boost::is_enum&lt;StrongEnum&gt;::value &lt;&lt; std::endl; std::cout &lt;&lt; std::is_enum&lt;StrongEnum&gt;::value &lt;&lt; std::endl; </pre><p> The output is:<br /> 0<br /> 1 </p> <p> Notice that the same bug is probably the reason why boost serialization for strongly typed enum's doesn't work either. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6394 Trac 1.4.3 John Maddock Thu, 12 Jul 2012 17:21:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6394#comment:1 https://svn.boost.org/trac10/ticket/6394#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> With apologies for the delay, this works for me both on Linux and Win32 with the latest 12.1 compiler releases and Boost.Trunk. I don't see any relevant changes between Boost-1.48 and now either. Please reopen if it's still an issue, and please give platform details. </p> Ticket John Maddock Mon, 16 Jul 2012 10:03:32 GMT <link>https://svn.boost.org/trac10/ticket/6394#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6394#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79562" title="Merged accumulated bug fixes from Trunk. Refs #6795. Refs #6394.">[79562]</a>) Merged accumulated bug fixes from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6795" title="#6795: Bugs: [type_traits] typo decay document (closed: fixed)">#6795</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6394" title="#6394: Bugs: Strongly typed enum not recognized by boost::is_enum (closed: worksforme)">#6394</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>