public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4141] libstdc++: Add missing noexcept to std::variant helper
@ 2021-10-04 14:24 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-10-04 14:24 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:728e639d82099035fdfe69b716a54717ae7050e0

commit r12-4141-g728e639d82099035fdfe69b716a54717ae7050e0
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.

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 d50c6b7de1d..6377b6731ea 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:[~2021-10-04 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 14:24 [gcc r12-4141] 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).