#7731 closed Bugs (fixed)
irange doesn't end iteration properly when step_size is 3 or more
Reported by: | Owned by: | Neil Groves | |
---|---|---|---|
Milestone: | To Be Determined | Component: | range |
Version: | Boost 1.52.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
The code
std::cout << boost::irange(0, 10, 3) << std::endl;
prints "036" instead of "0369".
Similar (but another) bug: https://svn.boost.org/trac/boost/ticket/5544
Attachments (1)
Change History (5)
by , 10 years ago
Attachment: | irange.hpp.patch added |
---|
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for irange