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