Boost C++ Libraries: Ticket #7731: irange doesn't end iteration properly when step_size is 3 or more https://svn.boost.org/trac10/ticket/7731 <p> The code </p> <p> std::cout &lt;&lt; boost::irange(0, 10, 3) &lt;&lt; std::endl; </p> <p> prints "036" instead of "0369". </p> <p> Similar (but another) bug: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/5544"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/5544</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7731 Trac 1.4.3 mazay0@… Sun, 25 Nov 2012 08:07:56 GMT attachment set https://svn.boost.org/trac10/ticket/7731 https://svn.boost.org/trac10/ticket/7731 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">irange.hpp.patch</span> </li> </ul> <p> patch for irange </p> Ticket Nathan Ridge Sat, 08 Jun 2013 20:41:44 GMT <link>https://svn.boost.org/trac10/ticket/7731#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7731#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84701" title="[range] Fix off-by-one error in implementation of irange() (refs #7731).">[84701]</a>) [range] Fix off-by-one error in implementation of irange() (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7731" title="#7731: Bugs: irange doesn't end iteration properly when step_size is 3 or more (closed: fixed)">#7731</a>). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Nathan Ridge</dc:creator> <pubDate>Sat, 08 Jun 2013 20:42:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7731#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7731#comment:2</guid> <description> <p> Thanks for the report and patch! Fixed in trunk. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Nathan Ridge</dc:creator> <pubDate>Tue, 18 Jun 2013 02:22:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7731#comment:3 https://svn.boost.org/trac10/ticket/7731#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84823" title="[range] Merge Boost.Range bug fixes to release branch (fixes #6944; ...">[84823]</a>) [range] Merge Boost.Range bug fixes to release branch (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6944" title="#6944: Bugs: Some Range concepts use the incorrect Iterator concept (closed: fixed)">#6944</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7407" title="#7407: Bugs: istream_range does not compile with wcin (closed: fixed)">#7407</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7408" title="#7408: Bugs: istream_range should not pull istream (closed: fixed)">#7408</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7731" title="#7731: Bugs: irange doesn't end iteration properly when step_size is 3 or more (closed: fixed)">#7731</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7827" title="#7827: Bugs: [range] cant compile r | indexed to range algorithm (closed: fixed)">#7827</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8338" title="#8338: Bugs: Iterator range does not work with pointer to array as iterator (closed: fixed)">#8338</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8453" title="#8453: Bugs: Incorrect configuration macro BOOST_NO_PARTIAL_TEMPLATE_SPECIALIZATION (closed: fixed)">#8453</a>). </p> Ticket Nathan Ridge Tue, 18 Jun 2013 02:23:15 GMT <link>https://svn.boost.org/trac10/ticket/7731#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7731#comment:4</guid> <description> <p> Fixed for 1.54. </p> </description> <category>Ticket</category> </item> </channel> </rss>