1 /*=============================================================================
2     Copyright (c) 2014 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_MAKE_LIST_10262014_0647
8 #define FUSION_MAKE_LIST_10262014_0647
9 
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/container/list/list.hpp>
12 
13 #if !defined(BOOST_FUSION_HAS_VARIADIC_LIST)
14 # include <boost/fusion/container/generation/detail/pp_make_list.hpp>
15 #else
16 
17 ///////////////////////////////////////////////////////////////////////////////
18 // C++11 variadic interface
19 ///////////////////////////////////////////////////////////////////////////////
20 
21 #include <boost/fusion/support/detail/as_fusion_element.hpp>
22 
23 namespace boost { namespace fusion
24 {
25     namespace result_of
26     {
27         template <typename ...T>
28         struct make_list
29         {
30             typedef list<typename detail::as_fusion_element<T>::type...> type;
31         };
32     }
33 
34     template <typename ...T>
35     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36     inline typename result_of::make_list<T...>::type
make_list(T const &...arg)37     make_list(T const&... arg)
38     {
39         return typename result_of::make_list<T...>::type(arg...);
40     }
41  }}
42 
43 
44 #endif
45 #endif
46 
47