|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55543 - trunk/boost/spirit/home/support
From: frabar666_at_[hidden]
Date: 2009-08-12 08:39:53
Author: fbarel
Date: 2009-08-12 08:39:48 EDT (Wed, 12 Aug 2009)
New Revision: 55543
URL: http://svn.boost.org/trac/boost/changeset/55543
Log:
Spirit: allow use of a derived context
Text files modified:
trunk/boost/spirit/home/support/context.hpp | 26 ++++++++++----------------
1 files changed, 10 insertions(+), 16 deletions(-)
Modified: trunk/boost/spirit/home/support/context.hpp
==============================================================================
--- trunk/boost/spirit/home/support/context.hpp (original)
+++ trunk/boost/spirit/home/support/context.hpp 2009-08-12 08:39:48 EDT (Wed, 12 Aug 2009)
@@ -68,33 +68,27 @@
};
template <typename Context>
- struct attributes_of;
-
- template <typename Attributes, typename Locals>
- struct attributes_of<context<Attributes, Locals> >
+ struct attributes_of
{
- typedef typename context<Attributes, Locals>::attributes_type type;
+ typedef typename Context::attributes_type type;
};
- template <typename Attributes, typename Locals>
- struct attributes_of<context<Attributes, Locals> const>
+ template <typename Context>
+ struct attributes_of<Context const>
{
- typedef typename context<Attributes, Locals>::attributes_type const type;
+ typedef typename Context::attributes_type const type;
};
template <typename Context>
- struct locals_of;
-
- template <typename Attributes, typename Locals>
- struct locals_of<context<Attributes, Locals> >
+ struct locals_of
{
- typedef typename context<Attributes, Locals>::locals_type type;
+ typedef typename Context::locals_type type;
};
- template <typename Attributes, typename Locals>
- struct locals_of<context<Attributes, Locals> const>
+ template <typename Context>
+ struct locals_of<Context const>
{
- typedef typename context<Attributes, Locals>::locals_type const type;
+ typedef typename Context::locals_type const type;
};
template <int N>
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