Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman 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: #ifndef BOOST_PP_IS_ITERATING Chris@16: #if !defined(FUSION_VECTOR_TIE_07192005_1242) Chris@16: #define FUSION_VECTOR_TIE_07192005_1242 Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) Chris@16: #include Chris@16: #else Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/vector_tie" FUSION_MAX_VECTOR_SIZE_STR".hpp") Chris@16: #endif Chris@16: Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman 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: This is an auto-generated file. Do not edit! Chris@16: ==============================================================================*/ Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 1) Chris@16: #endif Chris@16: Chris@16: namespace boost { namespace fusion Chris@16: { Chris@16: struct void_; Chris@16: Chris@16: namespace result_of Chris@16: { Chris@16: template < Chris@16: BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( Chris@16: FUSION_MAX_VECTOR_SIZE, typename T, void_) Chris@16: , typename Extra = void_ Chris@16: > Chris@16: struct vector_tie; Chris@16: } Chris@16: Chris@16: #define BOOST_FUSION_REF(z, n, data) BOOST_PP_CAT(T, n)& Chris@16: Chris@16: #define BOOST_PP_FILENAME_1 Chris@16: #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE) Chris@16: #include BOOST_PP_ITERATE() Chris@16: Chris@16: #undef BOOST_FUSION_REF Chris@16: }} Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(output: null) Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES Chris@16: Chris@16: #endif Chris@16: #else // defined(BOOST_PP_IS_ITERATING) Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // Chris@16: // Preprocessor vertical repetition code Chris@16: // Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: #define N BOOST_PP_ITERATION() Chris@16: Chris@16: namespace result_of Chris@16: { Chris@16: template Chris@16: #define TEXT(z, n, text) , text Chris@16: struct vector_tie< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_VECTOR_SIZE, TEXT, void_) > Chris@16: #undef TEXT Chris@16: { Chris@16: typedef vector type; Chris@16: }; Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: inline vector Chris@101: vector_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg)) Chris@16: { Chris@16: return vector( Chris@101: BOOST_PP_ENUM_PARAMS(N, arg)); Chris@16: } Chris@16: Chris@16: #undef N Chris@16: #endif // defined(BOOST_PP_IS_ITERATING) Chris@16: