#if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES) #include #elif !defined(BOOST_PP_IS_ITERATING) #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "preprocessed/pack_impl.hpp") #endif /////////////////////////////////////////////////////////////////////////////// /// \file pack_impl.hpp /// Contains helpers for pseudo-pack expansion. // // Copyright 2012 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif #define BOOST_PP_ITERATION_PARAMS_1 \ (3, (0, BOOST_PP_DEC(BOOST_PROTO_MAX_ARITY), )) #include BOOST_PP_ITERATE() #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #else #if BOOST_PP_ITERATION_DEPTH() == 1 #define N BOOST_PP_ITERATION() #define M BOOST_PP_SUB(BOOST_PROTO_MAX_ARITY, N) #define M0(Z, X, D) typename expand_pattern_helper, Fun>::type template struct expand_pattern : Cont::template cat { BOOST_MPL_ASSERT_MSG( (expand_pattern_helper, Fun>::applied::value) , NO_PACK_EXPRESSION_FOUND_IN_UNPACKING_PATTERN , (Fun) ); }; template struct BOOST_PP_CAT(expand_pattern_rest_, N) { template struct cat; #define BOOST_PP_ITERATION_PARAMS_2 \ (3, (1, M, )) #include BOOST_PP_ITERATE() }; #undef M0 #undef M #undef N #else #define I BOOST_PP_ITERATION() #define J BOOST_PP_RELATIVE_ITERATION(1) template struct cat { typedef msvc_fun_workaround type; }; #undef J #undef I #endif #endif