Subject: [Boost-bugs] [Boost C++ Libraries] #5135: Syntax error, if boost/thread.hpp is included before boost/icl/...
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-27 22:20:23
#5135: Syntax error, if boost/thread.hpp is included before boost/icl/...
---------------------------------------------------------------+------------
Reporter: afojgo@⦠| Owner: jofaber
Type: Bugs | Status: new
Milestone: Boost 1.46.0 | Component: ICL
Version: Boost Release Branch | Severity: Problem
Keywords: syntax error, macro unexpected include dependency |
---------------------------------------------------------------+------------
If <boost/thread.hpp> is included before code that uses the
BOOST_STATIC_CONSTANT Macro inside certain templates, it influences
compilation: Code that has compiled well, produces a syntax error C2059
under msvc-9/10. This can be fixed by enclosing certain subexpressions in
parentheses. The problem does not occur for gcc compilers.
Although the bug can be fixed inserting paretheses into code from
Boost.Icl it would be much better to fix the cause of the bug inside code
included in <boost/thread.hpp>.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5135> 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:05 UTC