]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove noexcept from std::osyncstream::operator=
authorJonathan Wakely <jwakely@redhat.com>
Thu, 1 Feb 2024 21:23:27 +0000 (21:23 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 16:11:57 +0000 (16:11 +0000)
This should not be noexcept because its _M_syncbuf member has a
potentially-throwing move assignment operator. The noexcept was removed
by LWG 3867.

libstdc++-v3/ChangeLog:

* include/std/syncstream (basic_osyncstream::operator=): Remove
noexcept, as per LWG 3867.

(cherry picked from commit 67f5a8c802463228da7c7bb2ab100095217560a6)

libstdc++-v3/include/std/syncstream

index 7a4f731ddd91047010b5ad9c3cf1b6cd43acb7b2..7da740d1609b96545e5c89265a3048b8dfad890d 100644 (file)
@@ -284,7 +284,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       ~basic_osyncstream() = default;
 
-      basic_osyncstream& operator=(basic_osyncstream&&) noexcept = default;
+      basic_osyncstream& operator=(basic_osyncstream&&) = default;
 
       syncbuf_type* rdbuf() const noexcept
       { return const_cast<syncbuf_type*>(&_M_syncbuf); }