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