diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-02-05 20:52:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-02-05 20:52:32 +0000 |
commit | 0becc206e35937a4902238a0dabbca31445a3f81 (patch) | |
tree | 7aaff51644a261e20c389c584801552f97295484 /src | |
parent | a1c7fbb6f9cb88ed48e5c2f7fde3913ec88e20b2 (diff) |
Restore the _NOEXCEPT on the dtor of bad_optional_access. Destructors are noexcept by default, so it's not really needed, but the other exception classes have the _NOEXCEPT, and gcc complains if these are missing. I think we should remove them all - but not today.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src')
-rw-r--r-- | src/optional.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optional.cpp b/src/optional.cpp index baee026ac..2877d175b 100644 --- a/src/optional.cpp +++ b/src/optional.cpp @@ -13,7 +13,7 @@ namespace std { -bad_optional_access::~bad_optional_access() = default; +bad_optional_access::~bad_optional_access() _NOEXCEPT = default; const char* bad_optional_access::what() const _NOEXCEPT { return "bad_optional_access"; @@ -23,6 +23,6 @@ const char* bad_optional_access::what() const _NOEXCEPT { _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL -bad_optional_access::~bad_optional_access() = default; +bad_optional_access::~bad_optional_access() _NOEXCEPT = default; _LIBCPP_END_NAMESPACE_EXPERIMENTAL |