Boost C++ Libraries: Ticket #12739: Undefined macro warning in stl_type_index.hpp https://svn.boost.org/trac10/ticket/12739 <p> Line 147 of <code>stl_type_index.hpp</code> generates the warning from Clang: <code>'_MSC_VER' is not defined, evaluates to 0</code> </p> <p> Fix: replace </p> <pre class="wiki">#if _MSC_VER &gt; 1600 || (__GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ &gt; 5 &amp;&amp; defined(__GXX_EXPERIMENTAL_CXX0X__)) </pre><p> by </p> <pre class="wiki">#if (defined(_MSC_VER) &amp;&amp; _MSC_VER &gt; 1600) || (defined(__GNUC__) &amp;&amp; __GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ &gt; 5 &amp;&amp; defined(__GXX_EXPERIMENTAL_CXX0X__)) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12739 Trac 1.4.3 Antony Polukhin Wed, 18 Jan 2017 19:35:59 GMT status, milestone changed https://svn.boost.org/trac10/ticket/12739#comment:1 https://svn.boost.org/trac10/ticket/12739#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.64.0</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/type_index/commit/f71d9eb3f23eba0a0011f9c86e73a01e2e2b03e5"><span class="icon">​</span>f71d9eb3</a> in develop branch. Will be merged to master as soon as the tests pass. </p> Ticket Antony Polukhin Sat, 22 Apr 2017 06:01:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12739#comment:2 https://svn.boost.org/trac10/ticket/12739#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket