Skip to content

Commit

Permalink
Update list to remove bogus strengthened comment (#5024)
Browse files Browse the repository at this point in the history
  • Loading branch information
5AIPAVAN authored Oct 21, 2024
1 parent 3532569 commit 7fe4057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions stl/inc/list
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions stl/inc/xtree
Original file line number Diff line number Diff line change
Expand Up @@ -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<key_compare>) {
_Tree& operator=(_Tree&& _Right)
noexcept(_Alnode_traits::is_always_equal::value && is_nothrow_move_assignable_v<key_compare>) {
if (this == _STD addressof(_Right)) {
return *this;
}
Expand Down

0 comments on commit 7fe4057

Please sign in to comment.