|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65440 - trunk/boost/spirit/home/support
From: mr.chr.schmidt_at_[hidden]
Date: 2010-09-16 13:46:04
Author: cschmidt
Date: 2010-09-16 13:46:01 EDT (Thu, 16 Sep 2010)
New Revision: 65440
URL: http://svn.boost.org/trac/boost/changeset/65440
Log:
Spirit: better specializations for fusion::extension::access::adt_attribute_proxy
Text files modified:
trunk/boost/spirit/home/support/adapt_adt_attributes.hpp | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Modified: trunk/boost/spirit/home/support/adapt_adt_attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/adapt_adt_attributes.hpp (original)
+++ trunk/boost/spirit/home/support/adapt_adt_attributes.hpp 2010-09-16 13:46:01 EDT (Thu, 16 Sep 2010)
@@ -76,11 +76,11 @@
///////////////////////////////////////////////////////////////////////////
template <typename T, int N, bool Const, typename Val>
struct assign_to_attribute_from_value<
- fusion::extension::access::adt_attribute_proxy<T, N, Const>, Val>
+ fusion::extension::access::adt_attribute_proxy<T, N, false>, Val>
{
static void
call(Val const& val
- , fusion::extension::access::adt_attribute_proxy<T, N, Const>& attr)
+ , fusion::extension::access::adt_attribute_proxy<T, N, false>& attr)
{
attr = val;
}
@@ -94,33 +94,33 @@
{};
///////////////////////////////////////////////////////////////////////////
- template <
- typename T, int N, bool Const, typename Attribute, typename Domain>
+ template <typename T, int N, typename Attribute, typename Domain>
struct transform_attribute<
- fusion::extension::access::adt_attribute_proxy<T, N, Const>
+ fusion::extension::access::adt_attribute_proxy<T, N, false>
, Attribute
, Domain
, typename disable_if<is_reference<
typename fusion::extension::access::adt_attribute_proxy<
- T, N, Const
+ T, N, false
>::type
> >::type>
{
typedef Attribute type;
static Attribute
- pre(fusion::extension::access::adt_attribute_proxy<T, N, Const>& val)
+ pre(fusion::extension::access::adt_attribute_proxy<T, N, false>& val)
{
return val;
}
static void
- post(fusion::extension::access::adt_attribute_proxy<T, N, Const>& val
+ post(
+ fusion::extension::access::adt_attribute_proxy<T, N, false>& val
, Attribute const& attr)
{
val = attr;
}
static void
- fail(fusion::extension::access::adt_attribute_proxy<T, N, Const>&)
+ fail(fusion::extension::access::adt_attribute_proxy<T, N, false>&)
{
}
};
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