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_VECTOR_FORWARD_CTOR_07122005_1123)
9 #define FUSION_VECTOR_FORWARD_CTOR_07122005_1123
11 #define FUSION_FORWARD_CTOR_FORWARD(z, n, _) BOOST_FUSION_FWD_ELEM(U##n, _##n)
13 #define BOOST_PP_FILENAME_1 \
14 <boost/fusion/container/vector/detail/cpp03/vector_forward_ctor.hpp>
15 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_VECTOR_SIZE)
16 #include BOOST_PP_ITERATE()
18 #undef FUSION_FORWARD_CTOR_FORWARD
20 #else // defined(BOOST_PP_IS_ITERATING)
21 ///////////////////////////////////////////////////////////////////////////////
23 // Preprocessor vertical repetition code
25 ///////////////////////////////////////////////////////////////////////////////
27 #define M BOOST_PP_ITERATION()
30 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
31 FUSION_HASH if !defined(BOOST_CLANG)
35 #if !defined(BOOST_CLANG)
39 BOOST_FUSION_GPU_ENABLED
43 vector(BOOST_PP_ENUM_BINARY_PARAMS(
44 M, typename detail::call_param<T, >::type arg))
45 : vec(BOOST_PP_ENUM_PARAMS(M, arg)) {}
47 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
48 FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
50 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
51 (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
52 template <BOOST_PP_ENUM_PARAMS(M, typename U)>
54 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
55 FUSION_HASH if !defined(BOOST_CLANG)
59 #if !defined(BOOST_CLANG)
63 BOOST_FUSION_GPU_ENABLED
67 vector(BOOST_PP_ENUM_BINARY_PARAMS(M, U, && arg)
69 , typename boost::disable_if_c<boost::is_same<vector, typename boost::remove_cv_ref<U0>::type>::value, detail::enabler_>::type = detail::enabler
72 : vec(BOOST_PP_ENUM(M, FUSION_FORWARD_CTOR_FORWARD, arg)) {}
74 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
79 #endif // defined(BOOST_PP_IS_ITERATING)