Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66737 - trunk/boost/spirit/home/support/iterators/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-24 12:54:22


Author: hkaiser
Date: 2010-11-24 12:54:20 EST (Wed, 24 Nov 2010)
New Revision: 66737
URL: http://svn.boost.org/trac/boost/changeset/66737

Log:
Spirit: fixing problem in multi_pass showing up in conjunction with certain lexer usage patterns
Text files modified:
   trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp 2010-11-24 12:54:20 EST (Wed, 24 Nov 2010)
@@ -80,7 +80,7 @@
             {
                 value_type& curtok = mp.shared()->curtok;
                 using namespace split_functor_input_is_valid_test_;
- if (!token_is_valid(curtok))
+ while (!token_is_valid(curtok))
                     functor_type::get_next(mp, curtok);
                 return curtok;
             }
@@ -143,7 +143,7 @@
             {
                 value_type& curtok = mp.shared()->curtok;
                 using namespace split_functor_input_is_valid_test_;
- if (!token_is_valid(curtok))
+ while (!token_is_valid(curtok))
                     functor_type::get_next(mp, curtok);
                 return curtok;
             }


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