|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69192 - sandbox/SOC/2010/phoenix3/boost/phoenix/core
From: thom.heller_at_[hidden]
Date: 2011-02-22 19:23:51
Author: theller
Date: 2011-02-22 19:23:48 EST (Tue, 22 Feb 2011)
New Revision: 69192
URL: http://svn.boost.org/trac/boost/changeset/69192
Log:
fixed terminal.hpp
Text files modified:
sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp | 59 ----------------------------------------
1 files changed, 0 insertions(+), 59 deletions(-)
Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp 2011-02-22 19:23:48 EST (Tue, 22 Feb 2011)
@@ -11,7 +11,6 @@
#include <boost/phoenix/core/limits.hpp>
#include <boost/is_placeholder.hpp>
#include <boost/phoenix/core/actor.hpp>
-#include <boost/phoenix/core/as_actor.hpp>
#include <boost/phoenix/core/meta_grammar.hpp>
#include <boost/phoenix/core/terminal_fwd.hpp>
#include <boost/proto/matches.hpp>
@@ -108,64 +107,6 @@
)
>
{};
-
- namespace meta
- {
- template<typename T>
- struct const_ref
- : add_reference<typename add_const<T>::type>
- {};
-
- template<typename T>
- struct argument_type
- : mpl::eval_if<
- is_function<typename remove_pointer<T>::type>,
- mpl::identity<T>,
- const_ref<T> >
- {
- typedef T type;
- };
- }
-
- template <typename T>
- struct as_actor_base
- {
- typedef typename expression::terminal<T>::type type;
-
- static typename expression::terminal<T>::type
- convert(typename meta::argument_type<T>::type x)
- {
- return expression::terminal<T>::make(x);
- }
- };
-
- // Sometimes it is necessary to auto-convert references to
- // a value<T>. This happens when we are re-currying. This
- // cannot happen through the standard public actor interfaces.
- template <typename T>
- struct as_actor_base<T&>
- {
- typedef typename expression::terminal<T>::type type;
-
- static typename expression::terminal<T>::type
- convert(T& x)
- {
- return expression::terminal<T>::make(x);
- }
- };
-
- template <typename T, int N>
- struct as_actor_base<T[N]>
- {
- typedef typename expression::terminal<T const *>::type type;
-
- static typename expression::terminal<T const *>::type
- convert(T const x[N])
- {
- return expression::terminal<T const *>::make(x);
- }
- };
-
}}
#endif
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