[Boost-bugs] [Boost C++ Libraries] #6131: #define foreach BOOST_FOREACH causes weird compile error in certain circumstances with boost 1.48

Subject: [Boost-bugs] [Boost C++ Libraries] #6131: #define foreach BOOST_FOREACH causes weird compile error in certain circumstances with boost 1.48
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-17 14:16:11


#6131: #define foreach BOOST_FOREACH causes weird compile error in certain
circumstances with boost 1.48
------------------------------+---------------------------------------------
 Reporter: loonycyborg | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: foreach
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 #define foreach BOOST_FOREACH causes compile error "'boost::BOOST_FOREACH'
 has not been declared" on its line if it appears after #include
 <boost/foreach.hpp> and before certain other boost headers.

 Compiler version: gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3
 Also tried gcc 4.3.5, 4.4.6 and 4.6.2

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