|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54991 - trunk/libs/spirit/test/lex
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-16 22:28:59
Author: hkaiser
Date: 2009-07-16 22:28:59 EDT (Thu, 16 Jul 2009)
New Revision: 54991
URL: http://svn.boost.org/trac/boost/changeset/54991
Log:
Spirit: fixing lex example for vc10
Text files modified:
trunk/libs/spirit/test/lex/lexer_state_switcher.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/libs/spirit/test/lex/lexer_state_switcher.cpp
==============================================================================
--- trunk/libs/spirit/test/lex/lexer_state_switcher.cpp (original)
+++ trunk/libs/spirit/test/lex/lexer_state_switcher.cpp 2009-07-16 22:28:59 EDT (Thu, 16 Jul 2009)
@@ -19,15 +19,14 @@
// define tokens and associate them with the lexer
switch_state_tokens()
{
- using boost::phoenix::ref;
- using boost::phoenix::val;
+ namespace phoenix = boost::phoenix;
using boost::spirit::lex::_state;
identifier = "[a-zA-Z_][a-zA-Z0-9_]*";
- this->self = identifier [ ref(state_) = _state ];
+ this->self = identifier [ phoenix::ref(state_) = _state ];
integer = "[0-9]+";
- this->self("INT") = integer [ _state = val("INITIAL") ];
+ this->self("INT") = integer [ _state = phoenix::val("INITIAL") ];
}
std::string state_;
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