[Boost-bugs] [Boost C++ Libraries] #8571: no free version begin/end for boost::irange

Subject: [Boost-bugs] [Boost C++ Libraries] #8571: no free version begin/end for boost::irange
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-14 06:36:43


#8571: no free version begin/end for boost::irange
-----------------------------------------+----------------------------------
 Reporter: record.nctu.cis91@… | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
-----------------------------------------+----------------------------------
 With the following code, compiler will complain that no begin/end is found
 for "range_2" which is integer range.[[BR]]
 I guess that integer range is missing ADL compatibility ?
 {{{
 #include <vector>

 #include <boost/range/iterator_range.hpp>
 #include <boost/range/irange.hpp>

 int main() {
     std::vector<int> v;

     auto range_1 = boost::make_iterator_range(v);
     auto range_2 = boost::irange(0, 1);

     begin(range_1); // found by ADL
       end(range_1); // found by ADL
     begin(range_2); // not found by ADL
       end(range_2); // not found by ADL

     return 0;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8571>
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:13 UTC