|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52950 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-12 21:39:04
Author: hkaiser
Date: 2009-05-12 21:39:03 EDT (Tue, 12 May 2009)
New Revision: 52950
URL: http://svn.boost.org/trac/boost/changeset/52950
Log:
Spirit: fixing long standing problem with lazy generators in Karma
Text files modified:
trunk/boost/spirit/home/support/terminal.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/support/terminal.hpp
==============================================================================
--- trunk/boost/spirit/home/support/terminal.hpp (original)
+++ trunk/boost/spirit/home/support/terminal.hpp 2009-05-12 21:39:03 EDT (Tue, 12 May 2009)
@@ -196,6 +196,10 @@
// wrap A in a Phoenix actor if not already one
typedef typename phoenix::as_actor<A>::type type;
};
+ template <typename A>
+ struct to_lazy_arg<const A>
+ : to_lazy_arg<A>
+ {};
template <>
struct to_lazy_arg<unused_type>
{
@@ -210,6 +214,10 @@
// identity
typedef A type;
};
+ template <typename A>
+ struct to_nonlazy_arg<const A>
+ : to_nonlazy_arg<A>
+ {};
template <>
struct to_nonlazy_arg<unused_type>
{
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