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: 2010-06-10 18:51:10


#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:
---------------------------+------------------------------------------------
Changes (by steven_watanabe):

  * status: new => closed
  * resolution: => invalid

Comment:

 The documentation says:

 If the template argument is not a model of Forward Traversal Iterator, one
 can still use a subset of the interface. In particular, size() requires
 Random Access Traversal Iterators whereas empty() only requires Single
 Pass Iterators.

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