From bd2e7e2cc740bbc5105129ba8f7ec370cbf53817 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 18 Nov 2010 16:11:25 +0000 Subject: [PATCH] fixed expression creation [SVN r66635] --- include/boost/phoenix/core/expression.hpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/boost/phoenix/core/expression.hpp b/include/boost/phoenix/core/expression.hpp index 2758189..aa6bb8d 100644 --- a/include/boost/phoenix/core/expression.hpp +++ b/include/boost/phoenix/core/expression.hpp @@ -46,20 +46,14 @@ namespace boost { namespace phoenix struct expr_ext : proto::transform, int> { - #define BOOST_PHOENIX_AS_EXPR(_, N, __) \ - typename proto::detail::as_expr, true>::result_type - - //typedef typename proto::result_of::make_expr::type base_type; typedef typename proto::result_of::make_expr::type base_type; typedef Actor type; - //typedef typename proto::nary_expr::proto_grammar proto_grammar;//BOOST_PP_ENUM(PHOENIX_ITERATION, BOOST_PHOENIX_AS_EXPR, _)>::proto_grammar proto_grammar; - typedef typename proto::nary_expr::proto_grammar proto_grammar;//BOOST_PP_ENUM(PHOENIX_ITERATION, BOOST_PHOENIX_AS_EXPR, _)>::proto_grammar proto_grammar; - //typedef typename type::proto_grammar proto_grammar;//BOOST_PP_ENUM(PHOENIX_ITERATION, BOOST_PHOENIX_AS_EXPR, _)>::proto_grammar proto_grammar; + typedef typename proto::nary_expr::proto_grammar proto_grammar; static type const make(PHOENIX_A_a) { type const e = {PHOENIX_a}; - //return e; + return e; } template @@ -73,11 +67,4 @@ namespace boost { namespace phoenix #undef BOOST_PHOENIX_ENUM_CHILDREN }; -/* - template - struct expr - : expr_ext - {}; -*/ - #endif