[Boost-bugs] [Boost C++ Libraries] #9295: PHOENIX_LIMIT macro clash: property_tree -- log/sink

Subject: [Boost-bugs] [Boost C++ Libraries] #9295: PHOENIX_LIMIT macro clash: property_tree -- log/sink
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-23 15:11:28


#9295: PHOENIX_LIMIT macro clash: property_tree -- log/sink
-----------------------------------------+------------------------
 Reporter: Johan Lundberg <lundberj@…> | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.54.0 | Severity: Regression
 Keywords: |
-----------------------------------------+------------------------
 Components:

 * spirit
 * phoenix
 * log
 * property_tree

 The following does not compile using gcc 4.8.1 or 4.7.2 (linux) using
 default warning options:

 {{{
 #include "boost/property_tree/json_parser.hpp"
 #include "boost/log/sinks.hpp"
 }}}

 The reason is that there are two (different?) definitions picked up, from
 deep within the include graphs:

 {{{
 boost/phoenix/core/limits.hpp:26
    #define PHOENIX_LIMIT BOOST_PHOENIX_LIMIT

 boost/spirit/home/classic/attribute.hpp:30
    #define PHOENIX_LIMIT 6
 }}}

 (Note to others: A workaround for cases where the two are not truly used
 together is to use a pimpl.)

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