Boost C++ Libraries: Ticket #6142: boost::mpl/has_xxx.hpp gives several errors https://svn.boost.org/trac10/ticket/6142 <p> when using boost 1.47.0 with gcc 4.1.2 and -Wundef -Werror, it gives the following errors </p> <pre class="wiki">boost/mpl/has_xxx.hpp:344:9: error: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined boost/mpl/has_xxx.hpp:357:9: error: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined mpl/has_xxx.hpp:386:9: error: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined boost/mpl/has_xxx.hpp:459:8: error: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined </pre><p> This problem has been already addressed by bug report 4666, but apparently its part for MPL has been forgotten. Therefore I would like to resurrect this problem again. </p> <p> Either the logic of defining these four #define's needs to be revisited in the header file, or their usage must be rewritten to check whether the #define is defined at all. For the latter case, I'm attaching a patch. </p> <p> Should you need more information, just ping me. Ivo Raisr </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6142 Trac 1.4.3 Ivo Raisr <ivosh@…> Fri, 18 Nov 2011 13:05:21 GMT attachment set https://svn.boost.org/trac10/ticket/6142 https://svn.boost.org/trac10/ticket/6142 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-has_xxx-defines.patch</span> </li> </ul> Ticket driscoll@… Wed, 11 Jan 2012 18:07:55 GMT cc set https://svn.boost.org/trac10/ticket/6142#comment:1 https://svn.boost.org/trac10/ticket/6142#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">driscoll@…</span> added </li> </ul> Ticket Ben Brian <bb51@…> Sun, 05 Feb 2012 03:59:32 GMT <link>https://svn.boost.org/trac10/ticket/6142#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6142#comment:2</guid> <description> <p> Problem also exists for me on OS X Lion with GCC 4.2.1 and Boost 1.48. </p> </description> <category>Ticket</category> </item> <item> <author>Ben Brian <bb51@…></author> <pubDate>Sun, 05 Feb 2012 04:34:03 GMT</pubDate> <title>cc changed https://svn.boost.org/trac10/ticket/6142#comment:3 https://svn.boost.org/trac10/ticket/6142#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">bb51@…</span> added </li> </ul> Ticket curdeius@… Fri, 18 Jan 2013 16:23:10 GMT <link>https://svn.boost.org/trac10/ticket/6142#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6142#comment:4</guid> <description> <p> The problem still exists on Win7 x64 with MSVC2010 and Boost 1.52. The patch works of course as it should. </p> </description> <category>Ticket</category> </item> <item> <author>ludolab31@…</author> <pubDate>Tue, 17 Feb 2015 21:07:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6142#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6142#comment:5</guid> <description> <p> The problem still exists on OS X 10.8.5 with Boost 1.55.0. Output of clang++ --version: <br /> <br /> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)<br /> Target: x86_64-apple-darwin12.5.0<br /> Thread model: posix </p> </description> <category>Ticket</category> </item> <item> <author>ludolab31@…</author> <pubDate>Tue, 17 Feb 2015 21:09:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6142#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6142#comment:5</guid> <description> <p> The problem still exists on OS X 10.8.5 with Boost 1.55.0. Output of clang++ --version: <br /> <br /> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)<br /> Target: x86_64-apple-darwin12.5.0<br /> Thread model: posix </p> </description> <category>Ticket</category> </item> </channel> </rss>