Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1993: Incorrect iterator_category computation in some iterator classes in Boost.Iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-06 15:25:55
#1993: Incorrect iterator_category computation in some iterator classes in
Boost.Iterator
---------------------------------------------------------+------------------
Reporter: Wijnand Suijlen <wijnandsuijlen_at_[hidden]> | Owner: dave
Type: Bugs | Status: closed
Milestone: Boost 1.36.0 | Component: iterator
Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords:
---------------------------------------------------------+------------------
Changes (by dave):
* status: new => closed
* resolution: => invalid
Comment:
The categories are correctly computed. An iterator cannot be called a
standard forward iterator unless its operator* returns value_type&, and
that is not possible with a zip iterator or with a transform iterator
whose function returns by value. Please see
http://www.boost.org/doc/libs/1_35_0/libs/iterator/doc/new-iter-
concepts.html#motivation
If you think you can get away with it, you can always specialize
std::iterator_traits<It> to lie about the iterator's iterator_category.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1993#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:49:58 UTC