Subject: [Boost-bugs] [Boost C++ Libraries] #5014: stride doesn't end iteration properly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-22 11:18:56
#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
Keywords: |
------------------------------------+---------------------------------------
The code
{{{#!c++
std::vector<int> v;
boost::push_back( v, boost::irange(0, 30) );
boost::copy( v | boost::adaptors::strided(4)
, std::ostream_iterator<int>(std::cout, " "));
}}}
prints "0 4 8 12 16 20 24"
instead of "0 4 8 12 16 20 24 28".
See the discussion for similar cases:
http://thread.gmane.org/gmane.comp.lib.boost.devel/211955
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5014> 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