Opened 11 years ago
Closed 11 years ago
#5556 closed Bugs (fixed)
Compilation error in boost::range with GCC 4.5
Reported by: | Owned by: | Neil Groves | |
---|---|---|---|
Milestone: | To Be Determined | Component: | range |
Version: | Boost 1.46.1 | Severity: | Problem |
Keywords: | Cc: |
Description
The following code:
#include <boost/range/algorithm.hpp> #include <boost/range/algorithm_ext.hpp> int main() { return 0; }
produces the following compilation error:
$ g++ main.cpp In file included from boost/range/algorithm_ext.hpp:20:0, from cppmain.cpp:2: boost/range/algorithm_ext/is_sorted.hpp: In function 'bool boost::range::is_sorted(const SinglePassRange&)': boost/range/algorithm_ext/is_sorted.hpp:55:12: error: 'is_sorted' is not a member of 'boost::range::range_detail'
Note that changing include order makes the error go away. I believe it's due to a fact that one of the headers included by <boost/range/algorithm.hpp>
defines a boost::range::range_detail
namespace, which is then looked up for is_sorted
implementation that is not there.
Note:
See TracTickets
for help on using tickets.
resolved on trunk by 'wash'