aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-02-01 21:23:27 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-02-02 10:18:04 +0000
commit67f5a8c802463228da7c7bb2ab100095217560a6 (patch)
treed520e1909d81475e40a21d090210431c692b9c1c
parent91adf2182a245ede958f02df61a5bb184e9110ba (diff)
downloadgcc-67f5a8c802463228da7c7bb2ab100095217560a6.zip
gcc-67f5a8c802463228da7c7bb2ab100095217560a6.tar.gz
gcc-67f5a8c802463228da7c7bb2ab100095217560a6.tar.bz2
libstdc++: Remove noexcept from std::osyncstream::operator=
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.
-rw-r--r--libstdc++-v3/include/std/syncstream2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream
index a84c93a..08a901b 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); }