Boost C++ Libraries: Ticket #2495: boost/type_traits/is_base_and_derived.hpp fails to compile when compiling using gcc -Wundef https://svn.boost.org/trac10/ticket/2495 <p> This is on boost 1.37.0 (no option for that in Version pull down at the moment). </p> <p> The following program: </p> <p> ---snip here--- #include &lt;boost/type_traits/is_base_and_derived.hpp&gt; ---snip here--- </p> <p> fails to compile if you compile with 'gcc -W -Wall -Wundef'. It gives the following errors: </p> <p> In file included from is_base_and_derived_problem.cpp:1: /home/andyc/work/3rdParty/boost_1_37_0/boost/type_traits/is_base_and_derived.hpp:243:1: warning: "<span class="underline">CODEGEARC</span>_WORKAROUND_GUARD" is not defined /home/andyc/work/3rdParty/boost_1_37_0/boost/type_traits/is_base_and_derived.hpp:243:1: warning: "<span class="underline">CODEGEARC</span>" is not defined </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2495 Trac 1.4.3 Marshall Clow Tue, 18 Nov 2008 00:59:50 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2495#comment:1 https://svn.boost.org/trac10/ticket/2495#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">type_traits</span> </li> </ul> Ticket Marshall Clow Tue, 18 Nov 2008 01:02:11 GMT version changed https://svn.boost.org/trac10/ticket/2495#comment:2 https://svn.boost.org/trac10/ticket/2495#comment:2 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> Ticket John Maddock Tue, 18 Nov 2008 08:53:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2495#comment:3 https://svn.boost.org/trac10/ticket/2495#comment:3 <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> Actually it compiles just fine for me: it just emits some annoying warnings. </p> <p> I've fixed workaround.hpp in Trunk to suppress these. </p> Ticket