public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3594] libstdc++: Add noexcept to std::nullopt_t constructor
@ 2021-09-16 22:07 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-09-16 22:07 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:cbe705a2f749c98a5f803afeb207e175b4c9a3c3

commit r12-3594-gcbe705a2f749c98a5f803afeb207e175b4c9a3c3
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Sep 16 14:14:38 2021 +0100

    libstdc++: Add noexcept to std::nullopt_t constructor
    
    Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
    
    libstdc++-v3/ChangeLog:
    
            * include/std/optional (nullptr_t): Make constructor noexcept.

Diff:
---
 libstdc++-v3/include/std/optional | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional
index b8ab7510757..b6ebe12b3e1 100644
--- a/libstdc++-v3/include/std/optional
+++ b/libstdc++-v3/include/std/optional
@@ -70,7 +70,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     enum class _Construct { _Token };
 
     // Must be constexpr for nullopt_t to be literal.
-    explicit constexpr nullopt_t(_Construct) { }
+    explicit constexpr nullopt_t(_Construct) noexcept { }
   };
 
   /// Tag to disengage optional objects.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-16 22:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 22:07 [gcc r12-3594] libstdc++: Add noexcept to std::nullopt_t constructor 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).