From d0ca96590eb7da6198dccb67c5507ef0bb89f919 Mon Sep 17 00:00:00 2001 From: Saipavan Lingamallu <123063767+5AIPAVAN@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:59:33 +0530 Subject: [PATCH 1/4] Update list to solve issue #5020 Update list to solve issue #5020 --- stl/inc/list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/list b/stl/inc/list index 9414d74ae2d..4d7be96da5a 100644 --- a/stl/inc/list +++ b/stl/inc/list @@ -921,7 +921,7 @@ public: } list& operator=(list&& _Right) - noexcept(_Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators) /* strengthened */ { + noexcept(_Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators) { if (this == _STD addressof(_Right)) { return *this; } From d149a582756bc151be7e9d37800e1c45e654d3ec Mon Sep 17 00:00:00 2001 From: Saipavan Lingamallu <123063767+5AIPAVAN@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:20:31 +0530 Subject: [PATCH 2/4] Update xtree replaced _Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators with _Alnode_traits::is_always_equal::value --- stl/inc/xtree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/xtree b/stl/inc/xtree index f0848f56b4f..32757717995 100644 --- a/stl/inc/xtree +++ b/stl/inc/xtree @@ -941,7 +941,7 @@ public: } _Tree& operator=(_Tree&& _Right) noexcept( - _Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators && is_nothrow_move_assignable_v) { + _Alnode_traits::is_always_equal::value && is_nothrow_move_assignable_v) { if (this == _STD addressof(_Right)) { return *this; } From 4db39e6090354b548f8a6483a72409f330dea192 Mon Sep 17 00:00:00 2001 From: Saipavan Lingamallu <123063767+5AIPAVAN@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:24:50 +0530 Subject: [PATCH 3/4] Update list changed Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators to _Alnode_traits::is_always_equal::value in line 923 --- stl/inc/list | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stl/inc/list b/stl/inc/list index 4d7be96da5a..79a96fd76b5 100644 --- a/stl/inc/list +++ b/stl/inc/list @@ -920,8 +920,7 @@ public: _Swap_val(_Right); } - list& operator=(list&& _Right) - noexcept(_Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators) { + list& operator=(list&& _Right) noexcept(_Alnode_traits::is_always_equal::value) { if (this == _STD addressof(_Right)) { return *this; } From 5ff713da68ac09a2a24a4a9224cfc4fc832175d9 Mon Sep 17 00:00:00 2001 From: 5AIPAVAN <123063767+5AIPAVAN@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:35:11 +0530 Subject: [PATCH 4/4] updated to _Alnode_traits::is_always_equal::value in xtree and list --- stl/inc/xtree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stl/inc/xtree b/stl/inc/xtree index 32757717995..3854fa379a3 100644 --- a/stl/inc/xtree +++ b/stl/inc/xtree @@ -940,8 +940,8 @@ public: _Swap_val_excluding_comp(_Right); } - _Tree& operator=(_Tree&& _Right) noexcept( - _Alnode_traits::is_always_equal::value && is_nothrow_move_assignable_v) { + _Tree& operator=(_Tree&& _Right) + noexcept(_Alnode_traits::is_always_equal::value && is_nothrow_move_assignable_v) { if (this == _STD addressof(_Right)) { return *this; }