mem_fun_ptr_eval_result_of.hpp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #if !BOOST_PHOENIX_IS_ITERATING
  2. #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
  3. #include <boost/phoenix/operator/detail/cpp03/preprocessed/mem_fun_ptr_eval_result_of.hpp>
  4. #else
  5. #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
  6. #pragma wave option(preserve: 2, line: 0, output: "preprocessed/mem_fun_ptr_eval_result_of_" BOOST_PHOENIX_LIMIT_STR ".hpp")
  7. #endif
  8. /*==============================================================================
  9. Copyright (c) 2005-2010 Joel de Guzman
  10. Copyright (c) 2010 Thomas Heller
  11. Copyright (c) 2018 Kohei Takahashi
  12. Distributed under the Boost Software License, Version 1.0. (See accompanying
  13. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  14. ==============================================================================*/
  15. #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
  16. #pragma wave option(preserve: 1)
  17. #endif
  18. #define BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD(Z, N, D) \
  19. typedef \
  20. typename \
  21. evaluator::impl< \
  22. BOOST_PP_CAT(A, N) \
  23. , Context \
  24. , proto::empty_env \
  25. >::result_type \
  26. BOOST_PP_CAT(child, N); \
  27. /**/
  28. #define BOOST_PHOENIX_ITERATION_PARAMS \
  29. (3, (2, BOOST_PHOENIX_LIMIT, \
  30. <boost/phoenix/operator/detail/cpp03/mem_fun_ptr_eval_result_of.hpp>))
  31. #include BOOST_PHOENIX_ITERATE()
  32. #undef BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD
  33. #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
  34. #pragma wave option(output: null)
  35. #endif
  36. #endif
  37. #else // BOOST_PHOENIX_ITERATE
  38. template <typename Context, BOOST_PHOENIX_typename_A>
  39. struct mem_fun_ptr_eval<Context, BOOST_PHOENIX_A>
  40. {
  41. BOOST_PP_REPEAT(
  42. BOOST_PHOENIX_ITERATION
  43. , BOOST_PHOENIX_MEM_FUN_PTR_EVAL_RESULT_OF_CHILD
  44. , _
  45. )
  46. typedef
  47. typename boost::result_of<
  48. child1(
  49. BOOST_PP_ENUM_SHIFTED_PARAMS(
  50. BOOST_PHOENIX_ITERATION
  51. , child
  52. )
  53. )
  54. >::type
  55. type;
  56. };
  57. #endif