Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53831 - trunk/boost/spirit/home/support/iterators/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-06-12 15:46:02


Author: hkaiser
Date: 2009-06-12 15:46:02 EDT (Fri, 12 Jun 2009)
New Revision: 53831
URL: http://svn.boost.org/trac/boost/changeset/53831

Log:
Spirit: Fixing multipass to work properly under certain lookahead conditions.
Text files modified:
   trunk/boost/spirit/home/support/iterators/detail/split_std_deque_policy.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/iterators/detail/split_std_deque_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/split_std_deque_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/split_std_deque_policy.hpp 2009-06-12 15:46:02 EDT (Fri, 12 Jun 2009)
@@ -63,6 +63,10 @@
                         queue.push_back(Value());
                         return MultiPass::advance_input(mp, queue[mp.queued_position++]);
                     }
+ else if (!MultiPass::input_is_valid(mp, queue[mp.queued_position]))
+ {
+ MultiPass::advance_input(mp, queue[mp.queued_position]);
+ }
                     return queue[mp.queued_position++];
                 }
                 else if (!MultiPass::input_is_valid(mp, queue[mp.queued_position-1]))


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