Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54692 - trunk/boost/spirit/home/qi/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-05 17:30:43


Author: hkaiser
Date: 2009-07-05 17:30:43 EDT (Sun, 05 Jul 2009)
New Revision: 54692
URL: http://svn.boost.org/trac/boost/changeset/54692

Log:
Spirit: Minor fix to simple_trace debug handler
Text files modified:
   trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp 2009-07-05 17:30:43 EDT (Sun, 05 Jul 2009)
@@ -74,7 +74,7 @@
             print_indent(indent);
             BOOST_SPIRIT_DEBUG_OUT << '<' << tag << '>';
             int const n = BOOST_SPIRIT_DEBUG_PRINT_SOME;
- for (int i = 0; first != last && i != n; ++i, ++first)
+ for (int i = 0; first != last && i != n && *first; ++i, ++first)
                 BOOST_SPIRIT_DEBUG_OUT << *first;
             BOOST_SPIRIT_DEBUG_OUT << "</" << tag << '>' << std::endl;
         }


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