[Boost-bugs] [Boost C++ Libraries] #1296: std::advance and std::distance for Boost.Iterator traversal categories

Subject: [Boost-bugs] [Boost C++ Libraries] #1296: std::advance and std::distance for Boost.Iterator traversal categories
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-03 17:32:57


#1296: std::advance and std::distance for Boost.Iterator traversal categories
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Patches
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost Development Trunk
 Severity: Problem | Keywords:
-----------------------+----------------------------------------------------
 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.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1296>
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:49:56 UTC