public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-8739] libstdc++: Remove noexcept from std::osyncstream::operator= Date: Fri, 2 Feb 2024 10:24:18 +0000 (GMT) [thread overview] Message-ID: <20240202102418.828BF385803F@sourceware.org> (raw) https://gcc.gnu.org/g:67f5a8c802463228da7c7bb2ab100095217560a6 commit r14-8739-g67f5a8c802463228da7c7bb2ab100095217560a6 Author: Jonathan Wakely <jwakely@redhat.com> Date: Thu Feb 1 21:23:27 2024 +0000 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. Diff: --- libstdc++-v3/include/std/syncstream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream index a84c93a61eee..08a901b62fd0 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); }
reply other threads:[~2024-02-02 10:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240202102418.828BF385803F@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).