1 /*=============================================================================
2 Copyright (c) 2014 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_LIST_10262014_0647
8 #define FUSION_MAKE_LIST_10262014_0647
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/container/list/list.hpp>
13 #if !defined(BOOST_FUSION_HAS_VARIADIC_LIST)
14 # include <boost/fusion/container/generation/detail/pp_make_list.hpp>
17 ///////////////////////////////////////////////////////////////////////////////
18 // C++11 variadic interface
19 ///////////////////////////////////////////////////////////////////////////////
21 #include <boost/fusion/support/detail/as_fusion_element.hpp>
23 namespace boost { namespace fusion
27 template <typename ...T>
30 typedef list<typename detail::as_fusion_element<T>::type...> type;
34 template <typename ...T>
35 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 inline typename result_of::make_list<T...>::type
37 make_list(T const&... arg)
39 return typename result_of::make_list<T...>::type(arg...);