public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9832] libstdc++: Add missing noexcept to std::variant helper
@ 2022-04-12 20:18 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-04-12 20:18 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:3f3755932c9c6ede94ac2131d4db70717b346164
commit r11-9832-g3f3755932c9c6ede94ac2131d4db70717b346164
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Oct 4 10:21:58 2021 +0100
libstdc++: Add missing noexcept to std::variant helper
libstdc++-v3/ChangeLog:
* include/std/variant (__detail::__variant::__as): Add missing
noexcept to first overload.
(cherry picked from commit 728e639d82099035fdfe69b716a54717ae7050e0)
Diff:
---
libstdc++-v3/include/std/variant | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant
index 769b4682bb7..c0585cb5999 100644
--- a/libstdc++-v3/include/std/variant
+++ b/libstdc++-v3/include/std/variant
@@ -206,7 +206,7 @@ namespace __variant
template<typename... _Types>
constexpr std::variant<_Types...>&
- __as(std::variant<_Types...>& __v)
+ __as(std::variant<_Types...>& __v) noexcept
{ return __v; }
template<typename... _Types>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-12 20:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 20:18 [gcc r11-9832] libstdc++: Add missing noexcept to std::variant helper 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).