[Boost-bugs] [Boost C++ Libraries] #5556: Compilation error in boost::range with GCC 4.5

Subject: [Boost-bugs] [Boost C++ Libraries] #5556: Compilation error in boost::range with GCC 4.5
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-20 20:04:17


#5556: Compilation error in boost::range with GCC 4.5
--------------------------------+-------------------------------------------
 Reporter: ru.elric@… | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5556>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC