File indexing completed on 2025-01-18 09:45:42
0001
0002 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
0003 #ifndef BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP
0004 #define BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP
0005
0006 #include <boost/phoenix/object/detail/cpp03/preprocessed/new_eval.hpp>
0007
0008 #endif
0009 #else
0010
0011 #if !BOOST_PHOENIX_IS_ITERATING
0012
0013 #ifndef BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP
0014 #define BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP
0015
0016 #include <boost/preprocessor/repetition/enum_shifted_binary_params.hpp>
0017
0018 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
0019 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/new_eval_" BOOST_PHOENIX_LIMIT_STR ".hpp")
0020 #endif
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
0031 #pragma wave option(preserve: 1)
0032 #endif
0033
0034 #define BOOST_PHOENIX_ITERATION_PARAMS \
0035 (3, (2, BOOST_PHOENIX_COMPOSITE_LIMIT, \
0036 <boost/phoenix/object/detail/cpp03/new_eval.hpp>))
0037 #include BOOST_PHOENIX_ITERATE()
0038
0039 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
0040 #pragma wave option(output: null)
0041 #endif
0042
0043 #endif
0044
0045 #else
0046
0047 template <typename This, BOOST_PHOENIX_typename_A, typename Context>
0048 struct result<This(BOOST_PHOENIX_A, Context)>
0049 {
0050 typedef
0051 typename proto::detail::uncvref<
0052 typename proto::result_of::value<A0>::type
0053 >::type
0054 target_type;
0055 typedef typename target_type::type construct_type;
0056 typedef typename target_type::type * type;
0057 };
0058
0059 template <BOOST_PHOENIX_typename_A, typename Context>
0060 typename result<new_eval(BOOST_PHOENIX_A_const_ref, Context &)>::type
0061 operator()(
0062 A0 const&
0063 , BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS(
0064 BOOST_PHOENIX_ITERATION
0065 , A
0066 , const& a
0067 )
0068 , Context const & ctx
0069 ) const
0070 {
0071 #define EVAL_a(_,n,__) \
0072 BOOST_PP_COMMA_IF(BOOST_PP_DEC(n)) boost::phoenix::eval(a ## n, ctx)
0073 return
0074 new typename result<
0075 new_eval(BOOST_PHOENIX_A_const_ref, Context &)
0076 >::construct_type(
0077 BOOST_PP_REPEAT_FROM_TO(
0078 1
0079 , BOOST_PHOENIX_ITERATION
0080 , EVAL_a
0081 , _
0082 )
0083 );
0084 #undef EVAL_a
0085 }
0086
0087 #endif
0088
0089 #endif