1 /*=============================================================================
2 Copyright (c) 2014-2015 Kohei Takahashi
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_MAKE_VECTOR_11112014_2252
8 #define FUSION_MAKE_VECTOR_11112014_2252
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/container/vector/vector.hpp>
13 #if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR)
14 # include <boost/fusion/container/generation/detail/pp_make_vector.hpp>
17 ///////////////////////////////////////////////////////////////////////////////
18 // C++11 variadic interface
19 ///////////////////////////////////////////////////////////////////////////////
21 #include <boost/fusion/support/detail/as_fusion_element.hpp>
22 #include <boost/type_traits/remove_reference.hpp>
23 #include <boost/type_traits/remove_const.hpp>
26 namespace boost { namespace fusion
30 template <typename ...T>
34 typename detail::as_fusion_element<
35 typename remove_const<
36 typename remove_reference<T>::type
43 template <typename ...T>
44 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
45 inline typename result_of::make_vector<T...>::type
46 make_vector(T&&... arg)
48 return typename result_of::make_vector<T...>::type(std::forward<T>(arg)...);