Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66917 - trunk/boost/spirit/home/support/utree/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-30 15:14:53


Author: hkaiser
Date: 2010-11-30 15:14:52 EST (Tue, 30 Nov 2010)
New Revision: 66917
URL: http://svn.boost.org/trac/boost/changeset/66917

Log:
Spirit: fixing iterator tag for utree node iterators
Text files modified:
   trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 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-11-30 15:14:52 EST (Tue, 30 Nov 2010)
@@ -144,7 +144,7 @@
       : public boost::iterator_facade<
             node_iterator<Value>
           , Value
- , boost::random_access_traversal_tag
+ , boost::bidirectional_traversal_tag
>
     {
     public:
@@ -194,8 +194,9 @@
         }
 
         template<typename Iterator>
- typename node_iterator::difference_type distance_to(Iterator const& other)
- const {
+ typename node_iterator::difference_type
+ distance_to(Iterator const& other) const
+ {
             return std::distance(*this, node_iterator(other));
         }
 


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