From ae4a6caa06b1a22fb0dcb43dbe222628ef4891fc Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Wed, 23 Feb 2011 00:23:48 +0000 Subject: [PATCH] fixed terminal.hpp [SVN r69192] --- include/boost/phoenix/core/terminal.hpp | 59 ------------------------- 1 file changed, 59 deletions(-) diff --git a/include/boost/phoenix/core/terminal.hpp b/include/boost/phoenix/core/terminal.hpp index 294215b..8dd677a 100644 --- a/include/boost/phoenix/core/terminal.hpp +++ b/include/boost/phoenix/core/terminal.hpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -108,64 +107,6 @@ namespace boost { namespace phoenix ) > {}; - - namespace meta - { - template - struct const_ref - : add_reference::type> - {}; - - template - struct argument_type - : mpl::eval_if< - is_function::type>, - mpl::identity, - const_ref > - { - typedef T type; - }; - } - - template - struct as_actor_base - { - typedef typename expression::terminal::type type; - - static typename expression::terminal::type - convert(typename meta::argument_type::type x) - { - return expression::terminal::make(x); - } - }; - - // Sometimes it is necessary to auto-convert references to - // a value. This happens when we are re-currying. This - // cannot happen through the standard public actor interfaces. - template - struct as_actor_base - { - typedef typename expression::terminal::type type; - - static typename expression::terminal::type - convert(T& x) - { - return expression::terminal::make(x); - } - }; - - template - struct as_actor_base - { - typedef typename expression::terminal::type type; - - static typename expression::terminal::type - convert(T const x[N]) - { - return expression::terminal::make(x); - } - }; - }} #endif