|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59573 - branches/quickbook-1.5-spirit2
From: daniel_james_at_[hidden]
Date: 2010-02-07 10:16:00
Author: danieljames
Date: 2010-02-07 10:15:59 EST (Sun, 07 Feb 2010)
New Revision: 59573
URL: http://svn.boost.org/trac/boost/changeset/59573
Log:
Use the new `qi::matches` directive.
Text files modified:
branches/quickbook-1.5-spirit2/phrase.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Modified: branches/quickbook-1.5-spirit2/phrase.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/phrase.cpp (original)
+++ branches/quickbook-1.5-spirit2/phrase.cpp 2010-02-07 10:15:59 EST (Sun, 07 Feb 2010)
@@ -15,6 +15,7 @@
#include <boost/spirit/include/qi_eoi.hpp>
#include <boost/spirit/include/qi_eol.hpp>
#include <boost/spirit/include/qi_eps.hpp>
+#include <boost/spirit/include/qi_matches.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/fusion/include/std_pair.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
@@ -387,9 +388,7 @@
call_template =
position
- >> ( '`' >> qi::attr(true)
- | qi::attr(false)
- )
+ >> qi::matches['`']
>> ( // Lookup the template name
(&qi::punct >> actions.templates.scope)
| (actions.templates.scope >> hard_space)
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