From 22994d7e96cad92d5b60540dca662ba1fa229b03 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Tue, 4 Aug 2015 16:23:13 +0900 Subject: [PATCH] Fix a discrepance of element types in make_set. --- include/boost/fusion/container/generation/make_set.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/fusion/container/generation/make_set.hpp b/include/boost/fusion/container/generation/make_set.hpp index 9abcf08e..7f98532b 100644 --- a/include/boost/fusion/container/generation/make_set.hpp +++ b/include/boost/fusion/container/generation/make_set.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) @@ -27,16 +27,16 @@ namespace boost { namespace fusion template struct make_set { - typedef set type; + typedef set::type...> type; }; } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline set::type...> + inline typename result_of::make_set::type make_set(T const&... arg) { - return set::type...>(arg...); + return typename result_of::make_set::type(arg...); } }}