Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53843 - trunk/boost/spirit/home/support/iterators/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-06-12 21:57:40


Author: hkaiser
Date: 2009-06-12 21:57:39 EDT (Fri, 12 Jun 2009)
New Revision: 53843
URL: http://svn.boost.org/trac/boost/changeset/53843

Log:
Spirit: Fixing bogus assertions
Text files modified:
   trunk/boost/spirit/home/support/iterators/detail/split_std_deque_policy.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 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 21:57:39 EDT (Fri, 12 Jun 2009)
@@ -55,7 +55,7 @@
                 queue_type& queue = mp.shared->queued_elements;
                 typename queue_type::size_type size = queue.size();
 
- BOOST_ASSERT(mp.queued_position > 1 && mp.queued_position <= size);
+ BOOST_ASSERT(mp.queued_position > 0 && mp.queued_position <= size);
 
                 Value& v(queue[mp.queued_position-1]);
                 if (!MultiPass::input_is_valid(mp, v))
@@ -72,7 +72,7 @@
                 queue_type& queue = mp.shared->queued_elements;
                 typename queue_type::size_type size = queue.size();
 
- BOOST_ASSERT(mp.queued_position > 1 && mp.queued_position <= size);
+ BOOST_ASSERT(mp.queued_position > 0 && mp.queued_position <= size);
 
                 // do not increment iterator as long as the current token is
                 // invalid


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