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_MAKE_SET_09162005_1125) Chris@16: #define FUSION_MAKE_SET_09162005_1125 Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@101: #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/make_set" FUSION_MAX_SET_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@101: #define FUSION_HASH # 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 make_set; Chris@16: Chris@16: template <> Chris@16: struct make_set<> Chris@16: { Chris@16: typedef set<> type; Chris@16: }; Chris@16: } Chris@16: Chris@101: // XXX: Chris@101: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@101: FUSION_HASH if defined(BOOST_CLANG) Chris@101: BOOST_CXX14_CONSTEXPR Chris@101: FUSION_HASH else Chris@101: BOOST_CONSTEXPR Chris@101: FUSION_HASH endif Chris@101: #else Chris@101: #if defined(BOOST_CLANG) Chris@101: BOOST_CXX14_CONSTEXPR Chris@101: #else Chris@101: BOOST_CONSTEXPR Chris@101: #endif Chris@101: #endif Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: inline set<> Chris@16: make_set() Chris@16: { Chris@16: return set<>(); Chris@16: } Chris@16: Chris@16: #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \ Chris@16: typename detail::as_fusion_element::type 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_ELEMENT Chris@16: #undef BOOST_FUSION_AS_ELEMENT Chris@16: Chris@16: }} Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@101: #undef FUSION_HASH 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 make_set< BOOST_PP_ENUM_PARAMS(N, T) BOOST_PP_REPEAT_FROM_TO(BOOST_PP_DEC(N), FUSION_MAX_SET_SIZE, TEXT, void_) > Chris@16: #undef TEXT Chris@16: { Chris@16: typedef set type; Chris@16: }; Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: inline set Chris@101: make_set(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg)) Chris@16: { Chris@16: return set( 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: