Chris@16
|
1
|
Chris@16
|
2 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
|
Chris@16
|
3 #ifndef BOOST_PHOENIX_OBJECT_DETAIL_CONSTRUCT_EVAL_HPP
|
Chris@16
|
4 #define BOOST_PHOENIX_OBJECT_DETAIL_CONSTRUCT_EVAL_HPP
|
Chris@16
|
5
|
Chris@16
|
6 #include <boost/phoenix/object/detail/preprocessed/construct_eval.hpp>
|
Chris@16
|
7
|
Chris@16
|
8 #endif
|
Chris@16
|
9 #else
|
Chris@16
|
10
|
Chris@16
|
11 #if !BOOST_PHOENIX_IS_ITERATING
|
Chris@16
|
12
|
Chris@16
|
13 #ifndef BOOST_PHOENIX_OBJECT_DETAIL_CONSTRUCT_EVAL_HPP
|
Chris@16
|
14 #define BOOST_PHOENIX_OBJECT_DETAIL_CONSTRUCT_EVAL_HPP
|
Chris@16
|
15
|
Chris@16
|
16 #include <boost/preprocessor/repetition/enum_shifted_binary_params.hpp>
|
Chris@16
|
17
|
Chris@16
|
18 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
19 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/construct_eval_" BOOST_PHOENIX_LIMIT_STR ".hpp")
|
Chris@16
|
20 #endif
|
Chris@16
|
21
|
Chris@16
|
22 /*==============================================================================
|
Chris@16
|
23 Copyright (c) 2005-2010 Joel de Guzman
|
Chris@16
|
24 Copyright (c) 2010 Thomas Heller
|
Chris@16
|
25
|
Chris@16
|
26 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
27 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
28 ==============================================================================*/
|
Chris@16
|
29
|
Chris@16
|
30 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
31 #pragma wave option(preserve: 1)
|
Chris@16
|
32 #endif
|
Chris@16
|
33
|
Chris@16
|
34 #define BOOST_PHOENIX_ITERATION_PARAMS \
|
Chris@16
|
35 (3, (2, BOOST_PHOENIX_COMPOSITE_LIMIT, \
|
Chris@16
|
36 <boost/phoenix/object/detail/construct_eval.hpp>))
|
Chris@16
|
37 #include BOOST_PHOENIX_ITERATE()
|
Chris@16
|
38
|
Chris@16
|
39 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
40 #pragma wave option(output: null)
|
Chris@16
|
41 #endif
|
Chris@16
|
42
|
Chris@16
|
43 #endif
|
Chris@16
|
44
|
Chris@16
|
45 #else
|
Chris@16
|
46
|
Chris@16
|
47 template <typename This, BOOST_PHOENIX_typename_A, typename Context>
|
Chris@16
|
48 struct result<This(BOOST_PHOENIX_A, Context)>
|
Chris@16
|
49 : detail::result_of::target<A0>
|
Chris@16
|
50 {
|
Chris@16
|
51 };
|
Chris@16
|
52
|
Chris@16
|
53 template <BOOST_PHOENIX_typename_A, typename Context>
|
Chris@16
|
54 typename detail::result_of::target<A0>::type
|
Chris@16
|
55 operator()(
|
Chris@16
|
56 A0 const&
|
Chris@16
|
57 , BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS(
|
Chris@16
|
58 BOOST_PHOENIX_ITERATION
|
Chris@16
|
59 , A
|
Chris@16
|
60 , const& a
|
Chris@16
|
61 )
|
Chris@16
|
62 , Context const & ctx
|
Chris@16
|
63 ) const
|
Chris@16
|
64 {
|
Chris@16
|
65 #define EVAL_a(_,n,__) \
|
Chris@16
|
66 BOOST_PP_COMMA_IF(BOOST_PP_DEC(n)) boost::phoenix::eval(a ## n, ctx)
|
Chris@16
|
67
|
Chris@16
|
68 return
|
Chris@16
|
69 typename detail::result_of::target<A0>::type(
|
Chris@16
|
70 BOOST_PP_REPEAT_FROM_TO(
|
Chris@16
|
71 1
|
Chris@16
|
72 , BOOST_PHOENIX_ITERATION
|
Chris@16
|
73 , EVAL_a, _
|
Chris@16
|
74 )
|
Chris@16
|
75 );
|
Chris@16
|
76 #undef EVAL_a
|
Chris@16
|
77 }
|
Chris@16
|
78
|
Chris@16
|
79 #endif
|
Chris@16
|
80
|
Chris@16
|
81 #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES
|