/*============================================================================= Copyright (c) 2014-2015 Kohei Takahashi Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #ifndef FUSION_LIST_MAIN_10262014_0447 #define FUSION_LIST_MAIN_10262014_0447 #include #include #include /////////////////////////////////////////////////////////////////////////////// // Without variadics, we will use the PP version /////////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_FUSION_HAS_VARIADIC_LIST) # include #else /////////////////////////////////////////////////////////////////////////////// // C++11 interface /////////////////////////////////////////////////////////////////////////////// #include #include namespace boost { namespace fusion { namespace detail { template struct list_to_cons; template <> struct list_to_cons<> { typedef nil_ type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call() { return type(); } }; template struct list_to_cons { typedef Head head_type; typedef list_to_cons tail_list_to_cons; typedef typename tail_list_to_cons::type tail_type; typedef cons type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(typename detail::call_param::type _h, typename detail::call_param::type ..._t) { return type(_h, tail_list_to_cons::call(_t...)); } }; }}} #endif #endif