aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-09-16 14:14:38 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-09-16 23:06:38 +0100
commitcbe705a2f749c98a5f803afeb207e175b4c9a3c3 (patch)
tree091f6594000f874c0927a20cc47345cfa2cfa79d
parent21c760510d31253074577a14021fdc6ad44084b6 (diff)
downloadgcc-cbe705a2f749c98a5f803afeb207e175b4c9a3c3.zip
gcc-cbe705a2f749c98a5f803afeb207e175b4c9a3c3.tar.gz
gcc-cbe705a2f749c98a5f803afeb207e175b4c9a3c3.tar.bz2
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.
-rw-r--r--libstdc++-v3/include/std/optional2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional
index b8ab751..b6ebe12 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.