Opened 10 years ago

Closed 10 years ago

#7293 closed Bugs (duplicate)

any_range.hpp does not compile any more

Reported by: anonymous Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.52.0 Severity: Regression
Keywords: Cc:

Description

compiling a file containing nothing but #include <boost/range/any_range.hpp> with gcc 4.7.1 results in the following errors (with both 1.51 and trunk!):

g++ test.cpp In file included from /usr/local/include/boost/range/detail/any_iterator.hpp:22:0,

from /usr/local/include/boost/range/any_range.hpp:17, from test.cpp:1:

/usr/local/include/boost/range/detail/any_iterator_wrapper.hpp:31:40: error: expected identifier before ‘(’ token /usr/local/include/boost/range/detail/any_iterator_wrapper.hpp:31:70: error: expected ‘)’ before ‘<’ token /usr/local/include/boost/range/detail/any_iterator_wrapper.hpp:31:70: error: expected ‘)’ before ‘<’ token /usr/local/include/boost/range/detail/any_iterator_wrapper.hpp:31:42: error: expected ‘;’ at end of member declaration ...

Change History (3)

comment:1 by anonymous, 10 years ago

For anyone having this problem, include
<boost/range/concepts.hpp> first. any_range uses concept checking, but does not include the appropriate header.

comment:2 by Takatoshi Kondo <redboltz@…>, 10 years ago

I think this bug is the same as #5603

comment:3 by Nathan Ridge, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #5603 (which was just fixed, by the way).

Note: See TracTickets for help on using tickets.