Boost C++ Libraries: Ticket #1317: has_xxx randomly broken in msvc https://svn.boost.org/trac10/ticket/1317 <pre class="wiki"> #include &lt;boost/mpl/has_xxx.hpp&gt; namespace my1 { BOOST_MPL_HAS_XXX_TRAIT_DEF(ppp) } #include &lt;boost/mpl/apply.hpp&gt; // does something bad for msvc. #include &lt;boost/static_assert.hpp&gt; namespace my2 { BOOST_MPL_HAS_XXX_TRAIT_DEF(ppp) } struct foo { typedef int ppp; }; BOOST_STATIC_ASSERT( my1::has_ppp&lt; foo &gt;::value ); // pass BOOST_STATIC_ASSERT( my2::has_ppp&lt; foo &gt;::value ); // failed int main() {} </pre><p> The second assertion fails in msvc7.1 and 8.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1317 Trac 1.4.3 harris.pc@… Tue, 30 Sep 2008 13:28:08 GMT <link>https://svn.boost.org/trac10/ticket/1317#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1317#comment:1</guid> <description> <p> I hit the same problem. </p> <p> This patch appears to resolve the issue for 1.36.0 </p> <p> I think this is an important problem, is there a central location for such patches? </p> <p> Patch found at: <a class="ext-link" href="http://lists.boost.org/Archives/boost/2008/06/138366.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2008/06/138366.php</a> </p> </description> <category>Ticket</category> </item> <item> <author>harris.pc@…</author> <pubDate>Tue, 30 Sep 2008 13:28:52 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/1317 https://svn.boost.org/trac10/ticket/1317 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1_36_0-djw_has_xxx.patch</span> </li> </ul> <p> Patch described in my message </p> Ticket Aleksey Gurtovoy Fri, 10 Oct 2008 22:02:35 GMT status changed https://svn.boost.org/trac10/ticket/1317#comment:2 https://svn.boost.org/trac10/ticket/1317#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fixed in the trunk (<a class="changeset" href="https://svn.boost.org/trac10/changeset/49260" title="has_xxx: Adjust MSVC 7.1/8.0 workaround (ticket #1317)">changeset:49260</a>), to be integrated in the release branch. </p> Ticket Aleksey Gurtovoy Sat, 11 Oct 2008 06:55:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1317#comment:3 https://svn.boost.org/trac10/ticket/1317#comment:3 <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> <p> Merged to the release branch (<a class="changeset" href="https://svn.boost.org/trac10/changeset/49273" title="Merged revisions 49260 via svnmerge from ...">changeset:49273</a>) </p> Ticket