diff --git a/stl/inc/list b/stl/inc/list index 9414d74ae2d..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) /* strengthened */ { + list& operator=(list&& _Right) noexcept(_Alnode_traits::is_always_equal::value) { if (this == _STD addressof(_Right)) { return *this; } diff --git a/stl/inc/xtree b/stl/inc/xtree index f0848f56b4f..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( - _Choose_pocma_v<_Alnode> == _Pocma_values::_Equal_allocators && 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; }