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