Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58770 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-06 11:01:06


Author: hkaiser
Date: 2010-01-06 11:01:05 EST (Wed, 06 Jan 2010)
New Revision: 58770
URL: http://svn.boost.org/trac/boost/changeset/58770

Log:
Spirit: fixing tests for Qi match
Text files modified:
   trunk/libs/spirit/test/qi/match_manip.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/test/qi/match_manip.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/match_manip.cpp (original)
+++ trunk/libs/spirit/test/qi/match_manip.cpp 2010-01-06 11:01:05 EST (Wed, 06 Jan 2010)
@@ -35,6 +35,7 @@
     BOOST_SPIRIT_ASSERT_MATCH(spirit::qi::domain, Expr);
 
     std::istringstream istrm(toparse);
+ istrm.unsetf(std::ios::skipws);
     istrm >> spirit::qi::compile<spirit::qi::domain>(expr);
     return istrm.good() || istrm.eof();
 }
@@ -46,6 +47,7 @@
         Expr, CopyExpr, CopyAttr, Skipper, Attribute> const& mm)
 {
     std::istringstream istrm(toparse);
+ istrm.unsetf(std::ios::skipws);
     istrm >> mm;
     return istrm.good() || istrm.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