diff mbox series

[committed] libstdc++: Remove noexcept from std::osyncstream::operator=

Message ID 20240202102459.2239841-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Remove noexcept from std::osyncstream::operator= | expand

Commit Message

Jonathan Wakely Feb. 2, 2024, 10:24 a.m. UTC
Tested aarch64-linux. Pushed to trunk.

-- >8 --

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.
---
 libstdc++-v3/include/std/syncstream | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream
index a84c93a61ee..08a901b62fd 100644
--- a/libstdc++-v3/include/std/syncstream
+++ b/libstdc++-v3/include/std/syncstream
@@ -285,7 +285,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); }