libstdc++: Remove noexcept from syncbuf::swap (LWG 3498)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 25 Jun 2021 17:31:22 +0000 (18:31 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 25 Jun 2021 17:41:30 +0000 (18:41 +0100)
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.

libstdc++-v3/include/std/syncstream

index 299941f..db6ebd5 100644 (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)