1 /*=============================================================================
2 Copyright (c) 2011 Thomas Heller
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !BOOST_PHOENIX_IS_ITERATING
9 template <typename F, BOOST_PHOENIX_typename_A_void(BOOST_PP_DEC(BOOST_PHOENIX_COMPOSITE_LIMIT)), typename Dummy = void>
10 struct has_phx2_result
14 template <typename F, BOOST_PHOENIX_typename_A_void(BOOST_PP_DEC(BOOST_PHOENIX_COMPOSITE_LIMIT)), typename Dummy = void>
17 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
18 #include <boost/phoenix/core/detail/cpp03/preprocessed/phx2_result.hpp>
20 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
21 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/phx2_result_" BOOST_PHOENIX_LIMIT_STR ".hpp")
23 /*=============================================================================
24 Copyright (c) 2011 Thomas Heller
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 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
30 #pragma wave option(preserve: 1)
33 #define BOOST_PHOENIX_ITERATION_PARAMS \
34 (3, (1, BOOST_PP_DEC(BOOST_PHOENIX_COMPOSITE_LIMIT), \
35 <boost/phoenix/core/detail/cpp03/phx2_result.hpp>))
36 #include BOOST_PHOENIX_ITERATE()
38 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
39 #pragma wave option(output: null)
46 template <typename F, BOOST_PHOENIX_typename_A>
47 struct has_phx2_result<F, BOOST_PHOENIX_A>
51 , has_phx2_result_impl<typename F::template result<F(BOOST_PHOENIX_A)> >
55 template <typename F, BOOST_PHOENIX_typename_A>
56 struct phx2_result<F, BOOST_PHOENIX_A>
58 typedef typename F::template result<BOOST_PHOENIX_A>::type type;
61 template <typename F, BOOST_PHOENIX_typename_A>
62 struct phx2_result<F, BOOST_PHOENIX_A_ref>
64 typedef typename F::template result<BOOST_PHOENIX_A>::type type;
67 template <typename F, BOOST_PHOENIX_typename_A>
68 struct phx2_result<F, BOOST_PHOENIX_A_const_ref>
70 typedef typename F::template result<BOOST_PHOENIX_A>::type type;