]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2011 Joel de Guzman | |
3 | ||
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_LIST_FORWARD_CTOR_07172005_0113) | |
9 | #define FUSION_LIST_FORWARD_CTOR_07172005_0113 | |
10 | ||
11 | #include <boost/preprocessor/iterate.hpp> | |
12 | #include <boost/preprocessor/cat.hpp> | |
13 | #include <boost/preprocessor/repetition/enum_shifted.hpp> | |
14 | #include <boost/preprocessor/repetition/enum_binary_params.hpp> | |
15 | #include <boost/preprocessor/repetition/repeat.hpp> | |
16 | ||
17 | #define FUSION_LIST_CTOR_MAKE_CONS(z, n, type) tie_cons(BOOST_PP_CAT(_, n) | |
18 | #define FUSION_LIST_CL_PAREN(z, n, type) ) | |
19 | ||
20 | #define BOOST_PP_FILENAME_1 \ | |
21 | <boost/fusion/container/list/detail/cpp03/list_forward_ctor.hpp> | |
22 | #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_LIST_SIZE) | |
23 | #include BOOST_PP_ITERATE() | |
24 | ||
25 | #undef FUSION_LIST_CTOR_MAKE_CONS | |
26 | #undef FUSION_LIST_CL_PAREN | |
27 | ||
28 | #endif | |
29 | #else // defined(BOOST_PP_IS_ITERATING) | |
30 | /////////////////////////////////////////////////////////////////////////////// | |
31 | // | |
32 | // Preprocessor vertical repetition code | |
33 | // | |
34 | /////////////////////////////////////////////////////////////////////////////// | |
35 | #define N BOOST_PP_ITERATION() | |
36 | ||
37 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
38 | #if N == 1 | |
39 | explicit | |
40 | #endif | |
41 | list(BOOST_PP_ENUM_BINARY_PARAMS( | |
42 | N, typename detail::call_param<T, >::type arg)) | |
43 | : inherited_type(list_to_cons::call(BOOST_PP_ENUM_PARAMS(N, arg))) | |
44 | {} | |
45 | ||
46 | #undef N | |
47 | #endif // defined(BOOST_PP_IS_ITERATING) | |
48 |