libstdc++: Remove noexcept from syncbuf::swap (LWG 3498)

The proposed resolution for the inconsistent noexcept-specifiers in the
spec is to remove it from bto hthe assignment operator and swap.

libstdc++-v3/ChangeLog:

	* include/std/syncstream (basic_syncbuf::swap()): Remove
	noexcept, as per LWG 3498.
This commit is contained in:
Jonathan Wakely 2021-06-25 18:31:22 +01:00
parent e83a5a6b68
commit 7ab7fa1b51
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
void
swap(basic_syncbuf& __other) noexcept
swap(basic_syncbuf& __other)
{
using _ATr = allocator_traits<_Alloc>;
if constexpr (!_ATr::propagate_on_container_swap::value)