Opened 12 years ago

Closed 12 years ago

#5295 closed Bugs (fixed)

boost/range/sub_range.hpp cannot be included by itself

Reported by: Ivan A. Melnikov (iv@… Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.46.0 Severity: Problem
Keywords: Cc:

Description

When I try to compile a simple test:

#include <boost/range/sub_range.hpp>

int main() { return 0; }

I got the following error (Linux x86_64, GCC 4.5.1):

$ g++ test.cpp In file included from test.cpp:2:0: /usr/include/boost/range/sub_range.hpp:15:21: error: missing binary operator before token "("

That's because BOOST_WORKAROUND is used on line 15, before corresponding header included on line 20.

Change History (1)

comment:1 by Neil Groves, 12 years ago

Resolution: fixed
Status: newclosed

Resolved on trunk.

Note: See TracTickets for help on using tickets.