Chris@16
|
1 /*=============================================================================
|
Chris@16
|
2 Copyright (c) 2001-2011 Joel de Guzman
|
Chris@16
|
3
|
Chris@16
|
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 ==============================================================================*/
|
Chris@16
|
7 #ifndef BOOST_PP_IS_ITERATING
|
Chris@16
|
8 #if !defined(FUSION_MAKE_TUPLE_10032005_0843)
|
Chris@16
|
9 #define FUSION_MAKE_TUPLE_10032005_0843
|
Chris@16
|
10
|
Chris@16
|
11 #include <boost/preprocessor/iterate.hpp>
|
Chris@16
|
12 #include <boost/preprocessor/repetition/enum_params.hpp>
|
Chris@16
|
13 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
|
Chris@16
|
14 #include <boost/fusion/tuple/tuple.hpp>
|
Chris@16
|
15 #include <boost/fusion/support/detail/as_fusion_element.hpp>
|
Chris@16
|
16
|
Chris@16
|
17 namespace boost { namespace fusion
|
Chris@16
|
18 {
|
Chris@101
|
19 BOOST_FUSION_GPU_ENABLED inline tuple<>
|
Chris@16
|
20 make_tuple()
|
Chris@16
|
21 {
|
Chris@16
|
22 return tuple<>();
|
Chris@16
|
23 }
|
Chris@16
|
24 }}
|
Chris@16
|
25
|
Chris@16
|
26 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
|
Chris@16
|
27 #include <boost/fusion/tuple/detail/preprocessed/make_tuple.hpp>
|
Chris@16
|
28 #else
|
Chris@16
|
29 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
30 #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/make_tuple" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
|
Chris@16
|
31 #endif
|
Chris@16
|
32
|
Chris@16
|
33 /*=============================================================================
|
Chris@16
|
34 Copyright (c) 2001-2011 Joel de Guzman
|
Chris@16
|
35
|
Chris@16
|
36 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
37 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
38
|
Chris@16
|
39 This is an auto-generated file. Do not edit!
|
Chris@16
|
40 ==============================================================================*/
|
Chris@16
|
41
|
Chris@16
|
42 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
43 #pragma wave option(preserve: 1)
|
Chris@16
|
44 #endif
|
Chris@16
|
45
|
Chris@16
|
46 namespace boost { namespace fusion
|
Chris@16
|
47 {
|
Chris@16
|
48 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
|
Chris@16
|
49 typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
|
Chris@16
|
50
|
Chris@16
|
51 #define BOOST_PP_FILENAME_1 <boost/fusion/tuple/make_tuple.hpp>
|
Chris@16
|
52 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
|
Chris@16
|
53 #include BOOST_PP_ITERATE()
|
Chris@16
|
54
|
Chris@16
|
55 #undef BOOST_FUSION_AS_FUSION_ELEMENT
|
Chris@16
|
56
|
Chris@16
|
57 }}
|
Chris@16
|
58
|
Chris@16
|
59 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
Chris@16
|
60 #pragma wave option(output: null)
|
Chris@16
|
61 #endif
|
Chris@16
|
62
|
Chris@16
|
63 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
|
Chris@16
|
64
|
Chris@16
|
65 #endif
|
Chris@16
|
66 #else // defined(BOOST_PP_IS_ITERATING)
|
Chris@16
|
67 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
68 //
|
Chris@16
|
69 // Preprocessor vertical repetition code
|
Chris@16
|
70 //
|
Chris@16
|
71 ///////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
72
|
Chris@16
|
73 #define N BOOST_PP_ITERATION()
|
Chris@16
|
74
|
Chris@16
|
75 template <BOOST_PP_ENUM_PARAMS(N, typename T)>
|
Chris@101
|
76 BOOST_FUSION_GPU_ENABLED
|
Chris@16
|
77 inline tuple<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
|
Chris@101
|
78 make_tuple(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
|
Chris@16
|
79 {
|
Chris@16
|
80 return tuple<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
|
Chris@101
|
81 BOOST_PP_ENUM_PARAMS(N, arg));
|
Chris@16
|
82 }
|
Chris@16
|
83
|
Chris@16
|
84 #undef N
|
Chris@16
|
85 #endif // defined(BOOST_PP_IS_ITERATING)
|
Chris@16
|
86
|