Re: [Boost-bugs] [Boost C++ Libraries] #5014: stride doesn't end iteration properly

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 02:14:30


#5014: stride doesn't end iteration properly
-------------------------------------+--------------------------------------
  Reporter: Maxim.Yanchenko@… | Owner: neilgroves
      Type: Bugs | Status: reopened
 Milestone: Boost 1.46.0 | Component: range
   Version: Boost 1.45.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------+--------------------------------------
Changes (by mimomorin@…):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

 The above code still prints "0 4 8 12 16 20 24"
 instead of "0 4 8 12 16 20 24 28".
 This is because, when constructing {{{strided_range}}},
 the end iterator of an input range should advance forward rather than
 backward.
 The regression test (libs/range/test/adaptor_test/strided.cpp) passes
 because a similar thing happens when populating {{{reference}}} in
 {{{strided_test_impl}}}.

 Please see:
 http://article.gmane.org/gmane.comp.lib.boost.devel/211975
 (The codes in the mail assumes stride is greater than zero...)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5014#comment:3>
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