From 3c18ded3aabb8a7d259e21529e89108eae123cb7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 9 Jun 2017 04:17:06 +0300 Subject: [PATCH] Check is_move_constructible, is_move_assignable --- include/boost/variant2/variant.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/variant2/variant.hpp b/include/boost/variant2/variant.hpp index 5ddda9b..e1c715b 100644 --- a/include/boost/variant2/variant.hpp +++ b/include/boost/variant2/variant.hpp @@ -361,7 +361,7 @@ template union variant_storage_impl { #if defined( BOOST_LIBSTDCXX_VERSION ) && BOOST_LIBSTDCXX_VERSION < 50000 - this->emplace_impl( mp_all, std::has_trivial_copy_assign...>(), mp_size_t(), std::forward(a)... ); + this->emplace_impl( mp_all, std::is_move_assignable, std::has_trivial_copy_assign..., std::is_move_assignable...>(), mp_size_t(), std::forward(a)... ); #else @@ -505,7 +505,7 @@ template struct variant_base_impl #if defined( BOOST_LIBSTDCXX_VERSION ) && BOOST_LIBSTDCXX_VERSION < 50000 - this->emplace_impl( std::is_nothrow_constructible(), mp_all, std::has_trivial_copy_assign...>(), std::forward(a)... ); + this->emplace_impl( std::is_nothrow_constructible(), mp_all, std::is_move_constructible, std::has_trivial_copy_assign..., std::is_move_assignable...>(), std::forward(a)... ); #else