[Boost-bugs] [Boost C++ Libraries] #1291: config.hpp fails to compile with gcc -Wundef

Subject: [Boost-bugs] [Boost C++ Libraries] #1291: config.hpp fails to compile with gcc -Wundef
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-28 08:05:23


#1291: config.hpp fails to compile with gcc -Wundef
-------------------------------+--------------------------------------------
 Reporter: andyc_at_[hidden] | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
 Severity: Problem | Keywords:
-------------------------------+--------------------------------------------
 .../boost/range/config.hpp:41:5: "_MSC_VER" is not defined

 There's been discussion about this line previously:

 http://lists.boost.org/Archives/boost/2005/04/83935.php

 I think this patch is the correct fix:


 {{{
 --- 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, < 1300 ) || __MWERKS__ <= 0x3003
 -#if _MSC_VER <= 1300 && !defined( __COMO__ ) && !defined( __GNUC__ ) &&
 __MWERKS__ <= 0x3003
 +#if BOOST_WORKAROUND( BOOST_MSVC, < 1300 ) || BOOST_WORKAROUND(
 __MWERKS__, <= 0x3003 )
  #define BOOST_RANGE_NO_ARRAY_SUPPORT 1
  #endif

 }}}

 IE use BOOST_WORKAROUND.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1291>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC