Re: [Boost-bugs] [Boost C++ Libraries] #4333: boost::iterator_range<T>::size() only works for T = random access iterator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4333: boost::iterator_range<T>::size() only works for T = random access iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-07 18:00:22


#4333: boost::iterator_range<T>::size() only works for T = random access iterator
---------------------------+------------------------------------------------
  Reporter: mstefanro | Owner: neilgroves
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: range
   Version: Boost 1.44.0 | Severity: Problem
Resolution: invalid | Keywords:
---------------------------+------------------------------------------------

Comment (by Jonathan Wakely <jwakely.boost@…>):

 Although it's true the code agrees with the documentation, that doesn't
 explain why it can't work with forward traversal iterators. What is the
 reason for this restriction?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4333#comment:2>
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:11 UTC