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

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

commit r11-9296-gd7046cc983accfbdc8cb33ce3ef56b30274b67b4
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.
    
    (cherry picked from commit cbe705a2f749c98a5f803afeb207e175b4c9a3c3)

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 0a67ce24bbd..023fe81cae2 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-11-24 11:51 UTC | newest]

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