Opened 15 years ago

Closed 14 years ago

Last modified 13 years ago

#1297 closed Patches (duplicate)

std advance and std distance for Boost.Iterator traversal categories

Reported by: wasti.redl@… Owned by: Dave Abrahams
Milestone: To Be Determined Component: iterator
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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.

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.

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.

Change History (4)

comment:1 by wasti.redl@…, 15 years ago

I can't attach the patch - TRAC complains about too many links in the submission and treats it as spam. (So yeah, it contains a patch to the HTML docs of utility. Duh!)

comment:2 by John Maddock, 15 years ago

Component: Noneiterator
Owner: set to Dave Abrahams

comment:3 by Dave Abrahams, 14 years ago

Resolution: duplicate
Status: newclosed

duplicates #1296; please see comment on that ticket

comment:4 by shipping Cialis, 13 years ago

Learn to pause -- or nothing worthwhile can catch up to you. vendita italia fioricet online pharmacy buy brand cialis cLZXtPn tramadol buy cheap

Note: See TracTickets for help on using tickets.