From e8e56139a82611e6c5e4138e02e0fadffbd566fc Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 9 Apr 2019 19:54:53 +0300 Subject: [PATCH] Update msvc workarounds for msvc-14.2 --- include/boost/variant2/variant.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index 50aa99d..fabc9fb 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -290,7 +290,7 @@ template constexpr variant_alternative_t() ) ); @@ -312,7 +312,7 @@ template constexpr variant_alternative_t() ) ); @@ -372,7 +372,7 @@ template constexpr U&& get(variant&& v) using I = mp11::mp_find, U>; -#if !BOOST_WORKAROUND(BOOST_MSVC, < 1920) +#if !BOOST_WORKAROUND(BOOST_MSVC, < 1930) return (void)( v.index() != I::value? throw bad_variant_access(): 0 ), std::move( v._get_impl( I() ) ); @@ -399,7 +399,7 @@ template constexpr U const&& get(variant const&& v) using I = mp11::mp_find, U>; -#if !BOOST_WORKAROUND(BOOST_MSVC, < 1920) +#if !BOOST_WORKAROUND(BOOST_MSVC, < 1930) return (void)( v.index() != I::value? throw bad_variant_access(): 0 ), std::move( v._get_impl( I() ) ); @@ -578,7 +578,7 @@ template struct overload: overload mp11::mp_identity operator()(T1) const; }; -#if BOOST_WORKAROUND( BOOST_MSVC, < 1920 ) +#if BOOST_WORKAROUND( BOOST_MSVC, < 1930 ) template using resolve_overload_type_ = decltype( overload()(std::declval()) );