[Boost-bugs] [Boost C++ Libraries] #1197: patch: boost/function/function_base.hpp fails to compile with gcc -Wundef if BOOST_STRICT_CONFIG is not defined

Subject: [Boost-bugs] [Boost C++ Libraries] #1197: patch: boost/function/function_base.hpp fails to compile with gcc -Wundef if BOOST_STRICT_CONFIG is not defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-21 12:13:16


#1197: patch: boost/function/function_base.hpp fails to compile with gcc -Wundef
if BOOST_STRICT_CONFIG is not defined
-------------------------------+--------------------------------------------
 Reporter: andyc_at_[hidden] | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
 Severity: Problem | Keywords:
-------------------------------+--------------------------------------------
 With gcc -Wundef, we get a compile error:

 .../boost/function/function_base.hpp:62:7: warning: "BOOST_STRICT_CONFIG"
 is not defined

 The following patch fixes it:


 {{{
 ===== 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 >
 0x540)
 + || !(defined(BOOST_STRICT_CONFIG) || !defined(__SUNPRO_CC) ||
 __SUNPRO_CC > 0x540)
  # define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX
  #endif


 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1197>
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