|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55969 - in trunk/boost/spirit/home/qi: auxiliary char
From: joel_at_[hidden]
Date: 2009-09-01 23:27:44
Author: djowel
Date: 2009-09-01 23:27:43 EDT (Tue, 01 Sep 2009)
New Revision: 55969
URL: http://svn.boost.org/trac/boost/changeset/55969
Log:
Hoist the char-class namespaces into qi (for usability)
correct concept class for attr
Text files modified:
trunk/boost/spirit/home/qi/auxiliary/attr.hpp | 2 +-
trunk/boost/spirit/home/qi/char/char_class.hpp | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/qi/auxiliary/attr.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/auxiliary/attr.hpp (original)
+++ trunk/boost/spirit/home/qi/auxiliary/attr.hpp 2009-09-01 23:27:43 EDT (Tue, 01 Sep 2009)
@@ -42,7 +42,7 @@
using spirit::attr;
template <typename Value>
- struct attr_parser : parser<attr_parser<Value> >
+ struct attr_parser : primitive_parser<attr_parser<Value> >
{
template <typename Context, typename Iterator>
struct attribute
Modified: trunk/boost/spirit/home/qi/char/char_class.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/char/char_class.hpp (original)
+++ trunk/boost/spirit/home/qi/char/char_class.hpp 2009-09-01 23:27:43 EDT (Tue, 01 Sep 2009)
@@ -31,6 +31,12 @@
namespace boost { namespace spirit { namespace qi
{
+ // hoist the char classification namespaces into qi sub-namespaces of the same name
+ namespace ascii { using namespace boost::spirit::ascii; }
+ namespace iso8859_1 { using namespace boost::spirit::iso8859_1; }
+ namespace standard { using namespace boost::spirit::standard; }
+ namespace standard_wide { using namespace boost::spirit::standard_wide; }
+
///////////////////////////////////////////////////////////////////////////
// Generic char classification parser (for alnum, alpha, graph, etc.)
///////////////////////////////////////////////////////////////////////////
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