Boost C++ Libraries: Ticket #1291: config.hpp fails to compile with gcc -Wundef https://svn.boost.org/trac10/ticket/1291 <p> .../boost/range/config.hpp:41:5: "_MSC_VER" is not defined </p> <p> There's been discussion about this line previously: </p> <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2005/04/83935.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2005/04/83935.php</a> </p> <p> I think this patch is the correct fix: </p> <pre class="wiki">--- 1.1/boost/range/config.hpp 2007-08-17 03:59:06 -07:00 +++ edited//home/martind/work/3rdParty/boost_1_34_1/boost/range/config.hpp 2007-09-27 11:45:49 -07:00 @@ -37,8 +37,7 @@ BOOST_RANGE_DEDUCED_TYPENAME #error "macro already defined!" #endif -//#if BOOST_WORKAROUND( BOOST_MSVC, &lt; 1300 ) || __MWERKS__ &lt;= 0x3003 -#if _MSC_VER &lt;= 1300 &amp;&amp; !defined( __COMO__ ) &amp;&amp; !defined( __GNUC__ ) &amp;&amp; __MWERKS__ &lt;= 0x3003 +#if BOOST_WORKAROUND( BOOST_MSVC, &lt; 1300 ) || BOOST_WORKAROUND( __MWERKS__, &lt;= 0x3003 ) #define BOOST_RANGE_NO_ARRAY_SUPPORT 1 #endif </pre><p> IE use BOOST_WORKAROUND. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1291 Trac 1.4.3 John Maddock Sat, 10 Nov 2007 17:19:37 GMT component, milestone changed; owner set https://svn.boost.org/trac10/ticket/1291#comment:1 https://svn.boost.org/trac10/ticket/1291#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Thorsten Ottosen</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">range</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> Looks to be a trivial patch, we should accept if at all possible. </p> Ticket Thorsten Ottosen Sat, 17 Nov 2007 21:24:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1291#comment:2 https://svn.boost.org/trac10/ticket/1291#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> Ticket