Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2640: counting_iterator::reference lifetime tied to iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-29 02:53:55
#2640: counting_iterator::reference lifetime tied to iterator
---------------------------+------------------------------------------------
Reporter: schoedl | Owner: dave
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: iterator
Version: Boost 1.37.0 | Severity: Problem
Resolution: | Keywords: counting_iterator reverse_iterator
---------------------------+------------------------------------------------
Comment (by mikhailberis):
I'm not sure I understand the consequences of this patch. Iterator
references are meant to be valid only while the actual source of the data
is still valid. This is the same reason why iterators typically don't own
the data it refers to.
I don't see why the semantics should change for counting iterator. Unless
there is really a bug with the implementation (i.e., a reproducible crash
or relying on undefined behavior) then I don't see why this patch solves
anything.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2640#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:04 UTC