1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef BOOST_PP_IS_ITERATING
8 #if !defined(FUSION_MAKE_TUPLE_10032005_0843)
9 #define FUSION_MAKE_TUPLE_10032005_0843
11 #include <boost/preprocessor/iterate.hpp>
12 #include <boost/preprocessor/repetition/enum_params.hpp>
13 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
14 #include <boost/fusion/tuple/detail/tuple.hpp>
15 #include <boost/fusion/support/detail/as_fusion_element.hpp>
17 namespace boost { namespace fusion
19 BOOST_FUSION_GPU_ENABLED inline tuple<>
26 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
27 #include <boost/fusion/tuple/detail/preprocessed/make_tuple.hpp>
29 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
30 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_tuple" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
33 /*=============================================================================
34 Copyright (c) 2001-2011 Joel de Guzman
36 Distributed under the Boost Software License, Version 1.0. (See accompanying
37 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
39 This is an auto-generated file. Do not edit!
40 ==============================================================================*/
42 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
43 #pragma wave option(preserve: 1)
46 namespace boost { namespace fusion
48 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
49 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
51 #define BOOST_PP_FILENAME_1 <boost/fusion/tuple/detail/make_tuple.hpp>
52 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
53 #include BOOST_PP_ITERATE()
55 #undef BOOST_FUSION_AS_FUSION_ELEMENT
59 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
60 #pragma wave option(output: null)
63 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
66 #else // defined(BOOST_PP_IS_ITERATING)
67 ///////////////////////////////////////////////////////////////////////////////
69 // Preprocessor vertical repetition code
71 ///////////////////////////////////////////////////////////////////////////////
73 #define N BOOST_PP_ITERATION()
75 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
76 BOOST_FUSION_GPU_ENABLED
77 inline tuple<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
78 make_tuple(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
80 return tuple<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
81 BOOST_PP_ENUM_PARAMS(N, arg));
85 #endif // defined(BOOST_PP_IS_ITERATING)