Boost C++ Libraries: Ticket #1197: patch: boost/function/function_base.hpp fails to compile with gcc -Wundef if BOOST_STRICT_CONFIG is not defined https://svn.boost.org/trac10/ticket/1197 <p> With gcc -Wundef, we get a compile error: </p> <p> .../boost/function/function_base.hpp:62:7: warning: "BOOST_STRICT_CONFIG" is not defined </p> <p> The following patch fixes it: </p> <pre class="wiki">===== boost/function/function_base.hpp 1.1 vs edited ===== --- 1.1/boost/function/function_base.hpp 2007-08-17 11:57:51 +01:00 +++ edited/boost/function/function_base.hpp 2007-08-21 10:52:10 +01:00 @@ -59,7 +59,7 @@ #if defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ || defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \ - || !(BOOST_STRICT_CONFIG || !defined(__SUNPRO_CC) || __SUNPRO_CC &gt; 0x540) + || !(defined(BOOST_STRICT_CONFIG) || !defined(__SUNPRO_CC) || __SUNPRO_CC &gt; 0x540) # define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1197 Trac 1.4.3 René Rivera Tue, 21 Aug 2007 15:20:50 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1197#comment:1 https://svn.boost.org/trac10/ticket/1197#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">function</span> </li> </ul> Ticket Douglas Gregor Tue, 21 Aug 2007 15:35:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1197#comment:2 https://svn.boost.org/trac10/ticket/1197#comment:2 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/38827" title="Committed patch to eliminate warnings with GCC's -Wundef. Fixes #1197 ">[38827]</a>) Committed patch to eliminate warnings with GCC's -Wundef. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1197" title="#1197: Bugs: patch: boost/function/function_base.hpp fails to compile with gcc ... (closed: fixed)">#1197</a> </p> Ticket andyc@… Fri, 31 Oct 2008 10:11:42 GMT <link>https://svn.boost.org/trac10/ticket/1197#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1197#comment:3</guid> <description> <p> it's not fixed in 1_36_0. Here's the patch to fix it: </p> <h5 class="section" id="boostfunctionfunction_base.hpp1.1vsedited">boost/function/function_base.hpp 1.1 vs edited</h5> <p> --- 1.1/boost/function/function_base.hpp 2008-10-30 16:15:10 +00:00 +++ edited/boost/function/function_base.hpp 2008-10-31 10:04:29 +00:00 @@ -74,7 +74,7 @@ </p> <blockquote> <p> #if defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ </p> <blockquote> <table class="wiki"> <tr><td> defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \ </td></tr></table> </blockquote> </blockquote> <ul><li></li></ul><table class="wiki"> <tr><td> !(BOOST_STRICT_CONFIG </td><td> !defined(<span class="underline">SUNPRO_CC) </span></td><td> <span class="underline">SUNPRO_CC &gt; 0x540) </span></td></tr><tr>+ <td> !(defined(BOOST_STRICT_CONFIG) </td><td> !defined(<span class="underline">SUNPRO_CC) </span></td><td> <span class="underline">SUNPRO_CC &gt; 0x540) </span></td></tr></table> <blockquote> <p> # define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX #endif </p> </blockquote> <p> </p> </description> <category>Ticket</category> </item> </channel> </rss>