* [committed] libstdc++: Add noexcept to std::nullopt_t constructor
@ 2021-09-16 22:08 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-09-16 22:08 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/std/optional (nullptr_t): Make constructor noexcept.
Tested x86_64-linux. Committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 867 bytes --]
commit cbe705a2f749c98a5f803afeb207e175b4c9a3c3
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Sep 16 14:14:38 2021
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 --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:08 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:08 [committed] 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).