Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55061 - trunk/libs/spirit/test/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-21 08:56:41


Author: hkaiser
Date: 2009-07-21 08:56:41 EDT (Tue, 21 Jul 2009)
New Revision: 55061
URL: http://svn.boost.org/trac/boost/changeset/55061

Log:
Spirit: fixed hanging test case
Text files modified:
   trunk/libs/spirit/test/karma/plus.cpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/libs/spirit/test/karma/plus.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/plus.cpp (original)
+++ trunk/libs/spirit/test/karma/plus.cpp 2009-07-21 08:56:41 EDT (Tue, 21 Jul 2009)
@@ -14,6 +14,7 @@
 #include <boost/spirit/include/karma_generate.hpp>
 #include <boost/spirit/include/karma_operator.hpp>
 #include <boost/spirit/include/karma_action.hpp>
+#include <boost/spirit/include/karma_auxiliary.hpp>
 #include <boost/fusion/include/vector.hpp>
 #include <boost/spirit/include/phoenix_core.hpp>
 #include <boost/spirit/include/phoenix_operator.hpp>
@@ -67,9 +68,9 @@
         BOOST_TEST(test_delimited("10 , 20 , 30 , ", +(int_ << ','), v, lit(" ")));
  
         fusion::vector<char, char> cc ('a', 'c');
- BOOST_TEST(test("ac", char_ << !+(char_(' ') << ',') << char_, cc));
+ BOOST_TEST(test("ac", char_ << &+(eps(false) << ',') << char_, cc));
         BOOST_TEST(test_delimited("a c ",
- char_ << !+(char_(' ') << ',') << char_, cc, " "));
+ char_ << &+(eps(false) << ',') << char_, cc, " "));
     }
 
     { // actions


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