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.
This commit is contained in:
Jonathan Wakely 2021-09-16 14:14:38 +01:00
parent 21c760510d
commit cbe705a2f7

View File

@ -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.