public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8738] libstdc++: Remove noexcept from std::generator::promise_type::yield_value
@ 2024-02-02 10:24 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-02-02 10:24 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:91adf2182a245ede958f02df61a5bb184e9110ba
commit r14-8738-g91adf2182a245ede958f02df61a5bb184e9110ba
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Feb 1 21:15:20 2024 +0000
libstdc++: Remove noexcept from std::generator::promise_type::yield_value
This overload of std::generator::promise_type::yield_value calls things
which might throw, so should not be noexcept. The noexcept was remove by
LWG 3894.
libstdc++-v3/ChangeLog:
* include/std/generator (promise_type::yield_value): Remove
noexcept from fourth overload, as per LWG 3894.
Diff:
---
libstdc++-v3/include/std/generator | 1 -
1 file changed, 1 deletion(-)
diff --git a/libstdc++-v3/include/std/generator b/libstdc++-v3/include/std/generator
index e7ef5ddfdd34..87983ee5e7c6 100644
--- a/libstdc++-v3/include/std/generator
+++ b/libstdc++-v3/include/std/generator
@@ -155,7 +155,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
requires convertible_to<ranges::range_reference_t<_R>, _Yielded>
auto
yield_value(ranges::elements_of<_R, _Alloc> __r)
- noexcept
{
auto __n = [] (allocator_arg_t, _Alloc,
ranges::iterator_t<_R> __i,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-02 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 10:24 [gcc r14-8738] libstdc++: Remove noexcept from std::generator::promise_type::yield_value Jonathan Wakely
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).