Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56342 - trunk/libs/spirit/test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-21 13:34:55


Author: hkaiser
Date: 2009-09-21 13:34:55 EDT (Mon, 21 Sep 2009)
New Revision: 56342
URL: http://svn.boost.org/trac/boost/changeset/56342

Log:
Spirit: fixed lexer test case
Text files modified:
   trunk/libs/spirit/test/lex/regression004.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/spirit/test/lex/regression004.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/regression004.cpp (original)
+++ trunk/libs/spirit/test/lex/regression004.cpp 2009-09-21 13:34:55 EDT (Mon, 21 Sep 2009)
@@ -19,7 +19,6 @@
 #include <iostream>
 #include <string>
 
-using namespace boost::spirit;
 namespace qi = boost::spirit::qi;
 namespace lex = boost::spirit::lex;
 
@@ -55,6 +54,8 @@
       , c(0), w(0), l(0)
     {
         using boost::phoenix::ref;
+ using qi::lit;
+ using qi::token;
 
         start = *( tok.word [++ref(w)]
                   | lit('\n') [++ref(l)]


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