2 #if !BOOST_PHOENIX_IS_ITERATING
4 #include <boost/phoenix/support/iterate.hpp>
5 #include <boost/preprocessor/comparison/equal.hpp>
7 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
9 #include <boost/phoenix/core/detail/cpp03/preprocessed/expression.hpp>
13 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
14 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/expression_" BOOST_PHOENIX_LIMIT_STR ".hpp")
17 /*=============================================================================
18 Copyright (c) 2005-2010 Joel de Guzman
19 Copyright (c) 2010 Eric Niebler
20 Copyright (c) 2010 Thomas Heller
22 Distributed under the Boost Software License, Version 1.0. (See accompanying
23 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
24 ==============================================================================*/
26 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
27 #pragma wave option(preserve: 1)
31 template <typename> class Actor
33 , BOOST_PHOENIX_typename_A_void(BOOST_PHOENIX_COMPOSITE_LIMIT)
34 , typename Dummy = void>
39 , BOOST_PHOENIX_typename_A_void(BOOST_PHOENIX_COMPOSITE_LIMIT)
40 , typename Dummy = void
42 struct expr : expr_ext<actor, Tag, BOOST_PHOENIX_A(BOOST_PHOENIX_COMPOSITE_LIMIT)> {};
45 BOOST_PP_COMMA_IF(N) \
46 typename proto::detail::uncvref<typename call_traits<BOOST_PP_CAT(A, N)>::value_type>::type
49 BOOST_PP_COMMA_IF(N) typename call_traits<BOOST_PP_CAT(A, N)>::param_type BOOST_PP_CAT(a, N)
51 #define BOOST_PHOENIX_ITERATION_PARAMS \
52 (3, (1, BOOST_PHOENIX_COMPOSITE_LIMIT, \
53 <boost/phoenix/core/detail/cpp03/expression.hpp>)) \
55 #include BOOST_PHOENIX_ITERATE()
60 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
61 #pragma wave option(output: null)
64 #endif // PHOENIX_DONT_USE_PREPROCESSED_FILES
67 template <template <typename> class Actor, typename Tag, BOOST_PHOENIX_typename_A>
68 struct expr_ext<Actor, Tag, BOOST_PHOENIX_A>
69 : proto::transform<expr_ext<Actor, Tag, BOOST_PHOENIX_A>, int>
72 typename proto::result_of::make_expr<
74 , phoenix_default_domain //proto::basic_default_domain
75 , BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, M0, _)
79 typedef Actor<base_type> type;
82 typename proto::nary_expr<Tag, BOOST_PHOENIX_A>::proto_grammar
85 static type make(BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, M1, _))
86 { //?? actor or Actor??
87 //Actor<base_type> const e =
88 actor<base_type> const e =
92 , phoenix_default_domain // proto::basic_default_domain
98 template<typename Expr, typename State, typename Data>
100 : proto::pass_through<expr_ext>::template impl<Expr, State, Data>
103 typedef Tag proto_tag;
104 #define BOOST_PHOENIX_ENUM_CHILDREN(_, N, __) \
105 typedef BOOST_PP_CAT(A, N) BOOST_PP_CAT(proto_child, N); \
107 BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_ENUM_CHILDREN, _)
108 #undef BOOST_PHOENIX_ENUM_CHILDREN