From a165f4919e947d25bedb6fa082f17d18d38f31fb Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 5 Sep 2025 16:10:15 +1000 Subject: [PATCH] Partial revert of changes for Issue #209 - compiler warnings Issue #248 concerns reduced performance due to commit 0d5068a0cc8b9aa74776bfc256759b0e8096eb71 --- include/boost/container/detail/pair.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/boost/container/detail/pair.hpp b/include/boost/container/detail/pair.hpp index 0e84ffbf..d63a8ddf 100644 --- a/include/boost/container/detail/pair.hpp +++ b/include/boost/container/detail/pair.hpp @@ -555,7 +555,8 @@ template struct is_trivially_copy_assignable > { - BOOST_STATIC_CONSTEXPR bool value = false ; + BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_copy_assignable::value && + boost::move_detail::is_trivially_copy_assignable::value; }; template @@ -565,7 +566,8 @@ template struct is_trivially_move_assignable > { - BOOST_STATIC_CONSTEXPR bool value = false; + BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_move_assignable::value && + boost::move_detail::is_trivially_move_assignable::value; }; template @@ -574,7 +576,8 @@ struct is_trivially_copy_assignable; template struct is_trivially_copy_constructible > { - BOOST_STATIC_CONSTEXPR bool value = false; + BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_copy_constructible::value && + boost::move_detail::is_trivially_copy_constructible::value; }; template @@ -583,7 +586,8 @@ struct is_trivially_move_assignable; template struct is_trivially_move_constructible > { - BOOST_STATIC_CONSTEXPR bool value = false; + BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_move_constructible::value && + boost::move_detail::is_trivially_move_constructible::value; }; template @@ -593,7 +597,7 @@ template struct is_trivially_destructible > { BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_destructible::value && - boost::move_detail::is_trivially_destructible::value ; + boost::move_detail::is_trivially_destructible::value; };