|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70570 - trunk/boost/spirit/home/qi/stream
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-26 12:58:50
Author: hkaiser
Date: 2011-03-26 12:58:48 EDT (Sat, 26 Mar 2011)
New Revision: 70570
URL: http://svn.boost.org/trac/boost/changeset/70570
Log:
Spirit: fixing stream parser
Text files modified:
trunk/boost/spirit/home/qi/stream/stream.hpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/qi/stream/stream.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/stream/stream.hpp (original)
+++ trunk/boost/spirit/home/qi/stream/stream.hpp 2011-03-26 12:58:48 EDT (Sat, 26 Mar 2011)
@@ -69,8 +69,10 @@
in >> attr; // use existing operator>>()
// advance the iterator if everything is ok
- if (in.good())
- std::advance(first, in.tellg());
+ if (in.good()) {
+ std::streamsize pos = in.tellg();
+ std::advance(first, pos);
+ }
return in.good() || in.eof();
}
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