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-23 00:17:57


#5014: stride doesn't end iteration properly
-------------------------------------+--------------------------------------
  Reporter: Maxim.Yanchenko@… | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.45.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------+--------------------------------------

Comment (by neilgroves):

 The requirement for the strided adaptor were overly severe. It required
 boost::size(rng) % stride_size == 0.

 I have modified the implementation of boost::size(rng) to enable
 modification of the strided_range constructors. This means that the
 strided_size no longer needs to be <= boost::size(rng), and that rng may
 now be a model of the SinglePassRangeConcept or better if the expression
 boost::size(rng) is also valid.

 This has been committed to the trunk. The regression tests shall be
 monitored before merging to the release branch.

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