[Boost-bugs] [Boost C++ Libraries] #2468: compile error with g++ -Wundef -Wall: BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD

Subject: [Boost-bugs] [Boost C++ Libraries] #2468: compile error with g++ -Wundef -Wall: BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-03 16:09:14


#2468: compile error with g++ -Wundef -Wall:
BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD
---------------------------------------------------+------------------------
 Reporter: ANDREW CHITTENDEN <andyc_at_[hidden]> | Type: Bugs
   Status: new | Milestone: Boost 1.38.0
Component: None | Version: Boost 1.36.0
 Severity: Problem | Keywords:
---------------------------------------------------+------------------------
 /home/andyc/work/tiger/1/include/ppc_BOS/boost/dynamic_bitset/config.hpp:39:1:
 error: "BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD" is not defined

 The following patch fixes it:

 ===== boost/dynamic_bitset/config.hpp 1.1 vs edited =====
 --- 1.1/boost/dynamic_bitset/config.hpp 2008-10-30 16:15:01 +00:00
 +++ edited/boost/dynamic_bitset/config.hpp 2008-11-03 16:04:45 +00:00
 @@ -29,6 +29,12 @@
  #define BOOST_DYNAMIC_BITSET_GNUC_VERSION ( __GNUC__ * 100 * 100
 \
                                              + __GNUC_MINOR__ * 100)

 +#ifndef BOOST_DYNAMIC_BITSET_GNUC_VERSION
 +#define BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD 1
 +#else
 +#define BOOST_DYNAMIC_BITSET_GNUC_VERSION_WORKAROUND_GUARD 0
 +#endif
 +
  // no-op function to workaround gcc bug c++/8419
  //
  namespace boost { namespace detail {

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2468>
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:59 UTC