Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5014: stride doesn't end iteration properly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-24 15:07:07
#5014: stride doesn't end iteration properly
-------------------------------------+--------------------------------------
Reporter: Maxim.Yanchenko@⦠| Owner: neilgroves
Type: Bugs | Status: closed
Milestone: Boost 1.46.0 | Component: range
Version: Boost 1.45.0 | Severity: Showstopper
Resolution: fixed | Keywords:
-------------------------------------+--------------------------------------
Changes (by neilgroves):
* status: reopened => closed
* resolution: => fixed
Comment:
I confirm that I made a design error yesterday while making the change to
the strided adaptor. The code I committed yesterday did not support
ForwardRange or SinglePassRange concepts. Additionally it did not perform
as we wanted. It was setting the last iterator in the range to be the last
valid iterator on a stride boundary.
To correct this I have added offset and max_offset information into the
strided_iterator. This is required so that we can use the offset to go
past the end of the range while avoiding advancing the underlying iterator
beyond valid values. This change additionally corrects a defect with
interoperability of strided iterators.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5014#comment:4> 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:05 UTC