Opened 12 years ago

Closed 11 years ago

#5296 closed Bugs (fixed)

include missed in boost/spirit/home/classic/actor/ref_value_actor.hpp

Reported by: Ivan A. Melnikov (iv@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.46.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (2)

comment:1 by anonymous, 12 years ago

Component: Nonespirit
Owner: set to Joel de Guzman
Version: Boost 1.45.0Boost 1.46.0

comment:2 by Bryce Adelstein Lelbach, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in 72069, note that Boost.Classic is deprecated.

Note: See TracTickets for help on using tickets.