Chris@16: Chris@16: #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) Chris@16: #ifndef BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP Chris@16: #define BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #endif Chris@16: #else Chris@16: Chris@16: #if !BOOST_PHOENIX_IS_ITERATING Chris@16: Chris@16: #ifndef BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP Chris@16: #define BOOST_PHOENIX_OBJECT_DETAIL_NEW_EVAL_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 2, line: 0, output: "preprocessed/new_eval_" BOOST_PHOENIX_LIMIT_STR ".hpp") Chris@16: #endif Chris@16: Chris@16: /*============================================================================== Chris@16: Copyright (c) 2005-2010 Joel de Guzman Chris@16: Copyright (c) 2010 Thomas Heller Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 1) Chris@16: #endif Chris@16: Chris@16: #define BOOST_PHOENIX_ITERATION_PARAMS \ Chris@16: (3, (2, BOOST_PHOENIX_COMPOSITE_LIMIT, \ Chris@16: )) Chris@16: #include BOOST_PHOENIX_ITERATE() Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(output: null) Chris@16: #endif Chris@16: Chris@16: #endif Chris@16: Chris@16: #else Chris@16: Chris@16: template Chris@16: struct result Chris@16: { Chris@16: typedef Chris@16: typename proto::detail::uncvref< Chris@16: typename proto::result_of::value::type Chris@16: >::type Chris@16: target_type; Chris@16: typedef typename target_type::type construct_type; Chris@16: typedef typename target_type::type * type; Chris@16: }; Chris@16: Chris@16: template Chris@16: typename result::type Chris@16: operator()( Chris@16: A0 const& Chris@16: , BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS( Chris@16: BOOST_PHOENIX_ITERATION Chris@16: , A Chris@16: , const& a Chris@16: ) Chris@16: , Context const & ctx Chris@16: ) const Chris@16: { Chris@16: #define EVAL_a(_,n,__) \ Chris@16: BOOST_PP_COMMA_IF(BOOST_PP_DEC(n)) boost::phoenix::eval(a ## n, ctx) Chris@16: return Chris@16: new typename result< Chris@16: new_eval(BOOST_PHOENIX_A_const_ref, Context &) Chris@16: >::construct_type( Chris@16: BOOST_PP_REPEAT_FROM_TO( Chris@16: 1 Chris@16: , BOOST_PHOENIX_ITERATION Chris@16: , EVAL_a Chris@16: , _ Chris@16: ) Chris@16: ); Chris@16: #undef EVAL_a Chris@16: } Chris@16: Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES