Boost C++ Libraries: Ticket #1296: std::advance and std::distance for Boost.Iterator traversal categories https://svn.boost.org/trac10/ticket/1296 <p> The new traversal categories of Boost.Iterator should be used in std::advance and std::distance, but this is obviously not possible without the cooperation of compiler writers. </p> <p> The attached patch (against the trunk, rev. 39675) implements boost::advance and boost::distance that use the new iterator categories. It implements them within the utility library, since that library already contains the closely related next() and prior() function templates. Documentation and test cases are included. </p> <p> The patch also modifies next() and prior() to use boost::advance(), although this change is a considerably higher risk than the addition of the new feature. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1296 Trac 1.4.3 John Maddock Sat, 10 Nov 2007 17:21:54 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1296#comment:1 https://svn.boost.org/trac10/ticket/1296#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">iterator</span> </li> </ul> Ticket Dave Abrahams Thu, 26 Jun 2008 21:36:31 GMT status changed; cc, resolution set https://svn.boost.org/trac10/ticket/1296#comment:2 https://svn.boost.org/trac10/ticket/1296#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">Thomas Witt</span> added </li> <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">wontfix</span> </li> </ul> <p> Aside from the fact that this is not a patch for the iterator library, the new categories are a dead-end as the standard has lifted the reference requirement on forward iterators, so I don't plan to implement anything like this. I actually plan to deprecate the new categories. </p> Ticket