1 /*============================================================================= 2 Copyright (c) 2014-2015 Kohei Takahashi 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 FUSION_VECTOR_FORWARD_11052014_1626 8 #define FUSION_VECTOR_FORWARD_11052014_1626 9 10 #include <boost/config.hpp> 11 #include <boost/fusion/support/config.hpp> 12 #include <boost/fusion/container/vector/detail/config.hpp> 13 14 /////////////////////////////////////////////////////////////////////////////// 15 // With no variadics, we will use the C++03 version 16 /////////////////////////////////////////////////////////////////////////////// 17 #if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR) 18 # include <boost/fusion/container/vector/detail/cpp03/vector_fwd.hpp> 19 #else 20 21 /////////////////////////////////////////////////////////////////////////////// 22 // C++11 interface 23 /////////////////////////////////////////////////////////////////////////////// 24 #include <boost/preprocessor/cat.hpp> 25 #include <boost/preprocessor/repetition/repeat.hpp> 26 27 namespace boost { namespace fusion 28 { 29 template <typename ...T> 30 struct vector; 31 32 #define FUSION_VECTOR_N_ALIASES(z, N, d) \ 33 template <typename ...T> \ 34 using BOOST_PP_CAT(vector, N) = vector<T...>; 35 36 BOOST_PP_REPEAT(51, FUSION_VECTOR_N_ALIASES, ~) 37 38 #undef FUSION_VECTOR_N_ALIASES 39 }} 40 41 #endif 42 #endif 43 44