From ec368a0a886ecec89439d49b52d69a6862aa809d Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 19 Nov 2010 15:01:52 +0000 Subject: [PATCH] some cleaning up [SVN r66645] --- include/boost/phoenix/core/unpack.hpp | 65 ----------------------- include/boost/phoenix/operator/member.hpp | 28 +--------- 2 files changed, 2 insertions(+), 91 deletions(-) diff --git a/include/boost/phoenix/core/unpack.hpp b/include/boost/phoenix/core/unpack.hpp index f2c8d5d..fac5b16 100644 --- a/include/boost/phoenix/core/unpack.hpp +++ b/include/boost/phoenix/core/unpack.hpp @@ -79,71 +79,6 @@ namespace boost { namespace phoenix >::value> struct unpack_impl; - /* - template - struct unpack_impl - : proto::transform_impl - { - struct fun_type : proto::when {}; - - typedef proto::call which; - - typedef typename which::template impl::result_type result_type; - - result_type - operator()( - typename unpack_impl::expr_param e - , typename unpack_impl::state_param s - , typename unpack_impl::data_param d - ) const - { - return typename which::template impl()(e, s, d); - } - }; - - template - struct unpack_impl - : proto::transform_impl - { - struct fun_type : proto::when {}; - - typedef proto::call which; - - typedef typename which::template impl::result_type result_type; - - result_type - operator()( - typename unpack_impl::expr_param e - , typename unpack_impl::state_param s - , typename unpack_impl::data_param d - ) const - { - return typename which::template impl()(e, s, d); - } - }; - - template - struct unpack_impl - : proto::transform_impl - { - struct fun_type : proto::when {}; - - typedef proto::call which; - - typedef typename which::template impl::result_type result_type; - - result_type - operator()( - typename unpack_impl::expr_param e - , typename unpack_impl::state_param s - , typename unpack_impl::data_param d - ) const - { - return typename which::template impl()(e, s, d); - } - }; - */ - #define M5(_, N, __) fun_type(fusion_at_c< N >(Seq)) #define M1(Z, N, ARITY) \ diff --git a/include/boost/phoenix/operator/member.hpp b/include/boost/phoenix/operator/member.hpp index 17bfe28..a6e6167 100644 --- a/include/boost/phoenix/operator/member.hpp +++ b/include/boost/phoenix/operator/member.hpp @@ -3,20 +3,12 @@ #ifndef PHOENIX_OPERATOR_MEMBER_HPP #define PHOENIX_OPERATOR_MEMBER_HPP -/*#include -#include -#include -#include -#include -#include -#include -#include */ +#include #include #include #include #include #include -#include namespace boost { namespace phoenix { @@ -26,20 +18,6 @@ namespace boost { namespace phoenix PHOENIX_DEFINE_EXPRESSION_VARARG(mem_fun_ptr, (meta_grammar), PHOENIX_LIMIT) - /* - namespace rule - { - struct mem_fun_ptr - : proto::nary_expr > - {}; - } - - template - struct meta_grammar::case_ - : proto::when - {}; - */ - template typename enable_if< is_member_function_pointer @@ -53,8 +31,6 @@ namespace boost { namespace phoenix struct mem_fun_ptr_eval : proto::callable { - //typedef int result_type; - template struct result; @@ -74,7 +50,7 @@ namespace boost { namespace phoenix template struct default_actions::when - : proto::call//(proto::_, evaluator(proto::_, _env)))> + : proto::call {}; }}