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:
parent
21c760510d
commit
cbe705a2f7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user