You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libc++] Change forward_list::swap to use propagate_on_container_swap for noexcept specification
The current implementation of `std::forward_list::swap` uses
`propagate_on_container_move_assignment` for `noexcept` specification.
This patch changes it to use `propagate_on_container_swap`, as it should.
Fixes llvm/llvm-project#49568 .
Differential Revision: https://reviews.llvm.org/D101899
Extended Description
The current implementation of
std::forward_list::swap
is as follows:which uses
propagate_on_container_move_assignment
fornoexcept
specification.This must use
propagate_on_container_swap
for checking according to [container.requirements.general/8].When the change is applied, the declaration should look like:
and the definition should be as follows:
The text was updated successfully, but these errors were encountered: