|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67121 - trunk/boost/spirit/home/support/utree/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-12-08 22:20:14
Author: hkaiser
Date: 2010-12-08 22:20:13 EST (Wed, 08 Dec 2010)
New Revision: 67121
URL: http://svn.boost.org/trac/boost/changeset/67121
Log:
Spirit: removing remnants of random access iterator in utree::node_iterator
Text files modified:
trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp | 31 +++----------------------------
1 files changed, 3 insertions(+), 28 deletions(-)
Modified: trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp
==============================================================================
--- trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp (original)
+++ trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp 2010-12-08 22:20:13 EST (Wed, 08 Dec 2010)
@@ -146,13 +146,12 @@
: public boost::iterator_facade<
node_iterator<Value>
, Value
- , boost::bidirectional_traversal_tag
- >
+ , boost::bidirectional_traversal_tag>
{
public:
node_iterator()
- : node(0) {}
+ : node(0), prev(0) {}
node_iterator(list::node* node, list::node* prev)
: node(node), prev(prev) {}
@@ -190,18 +189,6 @@
return node->val;
}
- void advance (typename node_iterator::difference_type n)
- {
- std::advance(*this, n);
- }
-
- template<typename Iterator>
- typename node_iterator::difference_type
- distance_to(Iterator const& other) const
- {
- return std::distance(*this, node_iterator(other));
- }
-
list::node* node;
list::node* prev;
};
@@ -211,8 +198,7 @@
: public boost::iterator_facade<
node_iterator<boost::reference_wrapper<Value> >
, boost::reference_wrapper<Value>
- , boost::random_access_traversal_tag
- >
+ , boost::random_access_traversal_tag>
{
public:
@@ -257,17 +243,6 @@
return curr;
}
- void advance (typename node_iterator::difference_type n)
- {
- std::advance(*this, n);
- }
-
- template<typename Iterator>
- typename node_iterator::difference_type distance_to(Iterator const& other)
- const {
- return std::distance(*this, node_iterator(other));
- }
-
list::node* node;
list::node* prev;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk