Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6455: Boost foreach conflicts with Q_FOREACH and moc generation.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-23 09:38:53
#6455: Boost foreach conflicts with Q_FOREACH and moc generation.
------------------------------------------+--------------------------
Reporter: Chuck Lloyd <chuck.lloyd@â¦> | Owner: eric_niebler
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: foreach
Version: Boost 1.48.0 | Severity: Problem
Resolution: fixed | Keywords: Qt foreach
------------------------------------------+--------------------------
Comment (by alex@â¦):
Hi,
I'm still having issues with <boost/foreach.hpp> and Qt's foreach with
various recent versions of boost (checked that the issue is present in
1.50.0 and 1.55.0). I will attach a single-file test case which
demonstrates the issue where the application fails to compile with the
BOOST_FOREACH construct present in a Qt application. The number and order
of include files appears to be key, if you cut it down to just the core
application and the <boost/foreach.hpp> include then the error is gone, so
there's some interplay going on here. I'll also attach the errors I get
when compiling on this platform (OSX 10.9 against boost 1.55.0, clang
x86_64).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6455#comment:5> 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:16 UTC