From: Jonathan Wakely Date: Fri, 25 Jun 2021 17:31:22 +0000 (+0100) Subject: libstdc++: Remove noexcept from syncbuf::swap (LWG 3498) X-Git-Tag: basepoints/gcc-13~6498 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ab7fa1b51cb7227e051842bcb971b95c962327a;p=thirdparty%2Fgcc.git 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. --- diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream index 299941f651ca..db6ebd504714 100644 --- a/libstdc++-v3/include/std/syncstream +++ b/libstdc++-v3/include/std/syncstream @@ -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)