From 4eda5454058b480858f6d227787356fb1bfc7c29 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Thu, 23 Nov 2017 22:48:11 +0900 Subject: [PATCH] Fixed a regression with msvc 10/11/12 defect --- include/boost/fusion/container/vector/detail/cpp03/vector.hpp | 4 +++- .../container/vector/detail/cpp03/vector_forward_ctor.hpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/fusion/container/vector/detail/cpp03/vector.hpp b/include/boost/fusion/container/vector/detail/cpp03/vector.hpp index 33b87bfb..f5c3024e 100644 --- a/include/boost/fusion/container/vector/detail/cpp03/vector.hpp +++ b/include/boost/fusion/container/vector/detail/cpp03/vector.hpp @@ -1,5 +1,6 @@ /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman + Copyright (c) 2017 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) @@ -22,6 +23,7 @@ #include #include #include +#include #include #include @@ -178,7 +180,7 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED typename boost::disable_if_c< - boost::is_same::type const>::value + boost::is_same::type>::value , vector& >::type operator=(T&& rhs) diff --git a/include/boost/fusion/container/vector/detail/cpp03/vector_forward_ctor.hpp b/include/boost/fusion/container/vector/detail/cpp03/vector_forward_ctor.hpp index e0f9d83c..3422e4b9 100644 --- a/include/boost/fusion/container/vector/detail/cpp03/vector_forward_ctor.hpp +++ b/include/boost/fusion/container/vector/detail/cpp03/vector_forward_ctor.hpp @@ -66,7 +66,7 @@ FUSION_HASH endif #endif vector(BOOST_PP_ENUM_BINARY_PARAMS(M, U, && arg) #if M == 1 - , typename boost::disable_if_c::type const>::value, detail::enabler_>::type = detail::enabler + , typename boost::disable_if_c::type>::value, detail::enabler_>::type = detail::enabler #endif ) : vec(BOOST_PP_ENUM(M, FUSION_FORWARD_CTOR_FORWARD, arg)) {}