[Boost-bugs] [Boost C++ Libraries] #5296: include missed in boost/spirit/home/classic/actor/ref_value_actor.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #5296: include missed in boost/spirit/home/classic/actor/ref_value_actor.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-12 21:13:51


#5296: include missed in boost/spirit/home/classic/actor/ref_value_actor.hpp
------------------------------------------------+---------------------------
 Reporter: Ivan A. Melnikov (iv@… | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
------------------------------------------------+---------------------------
 boost/spirit/home/classic/actor/ref_value_actor.hpp uses BOOST_WORKAROUND
 but doesn't include boost/detail/workaround.hpp. This can lead to
 compilation errors if it's users do not include that file themselves. For
 example, on linux with gcc 4.5.1, when I compile simple test

 #include <boost/spirit/home/classic/actor/ref_value_actor.hpp>
 int main() { return 0; }

 I get the following error:
 $ g++ test.cpp
 In file included from test.cpp:2:0:
 /usr/include/boost/spirit/home/classic/actor/ref_value_actor.hpp:17:21:
 error: missing binary operator before token "("
 /usr/include/boost/spirit/home/classic/actor/ref_value_actor.hpp:73:21:
 error: missing binary operator before token "("

 The same happens when I change my test to include e.g.
 boost/spirit/include/classic_actor.hpp

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