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 , 10 years ago
comment:3 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #5603 (which was just fixed, by the way).
For anyone having this problem, include
<boost/range/concepts.hpp> first. any_range uses concept checking, but does not include the appropriate header.