From 5cceded23b8dd02b8728fde57916fe2f81ed6c21 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Tue, 23 Jun 2015 08:56:58 +0900 Subject: [PATCH] Drop unnecessary specialization. --- .../container/list/detail/list_to_cons.hpp | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/include/boost/fusion/container/list/detail/list_to_cons.hpp b/include/boost/fusion/container/list/detail/list_to_cons.hpp index 780d637e..1ce1cfba 100644 --- a/include/boost/fusion/container/list/detail/list_to_cons.hpp +++ b/include/boost/fusion/container/list/detail/list_to_cons.hpp @@ -1,5 +1,5 @@ /*============================================================================= - Copyright (c) 2014 Kohei Takahashi + 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) @@ -7,6 +7,7 @@ #ifndef FUSION_LIST_MAIN_10262014_0447 #define FUSION_LIST_MAIN_10262014_0447 +#include #include #include @@ -21,6 +22,7 @@ // C++11 interface /////////////////////////////////////////////////////////////////////////////// #include +#include namespace boost { namespace fusion { namespace detail { @@ -31,23 +33,9 @@ namespace boost { namespace fusion { namespace detail struct list_to_cons<> { typedef nil_ 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_FUSION_GPU_ENABLED - static type - call(typename detail::call_param::type _h) - { - return type(_h); - } + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED + static type call() { return type(); } }; template @@ -59,7 +47,7 @@ namespace boost { namespace fusion { namespace detail typedef cons type; - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static type call(typename detail::call_param::type _h, typename detail::call_param::type ..._t)