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