summaryrefslogtreecommitdiff
path: root/include/optional
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-02-05 20:52:32 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-02-05 20:52:32 +0000
commit0becc206e35937a4902238a0dabbca31445a3f81 (patch)
tree7aaff51644a261e20c389c584801552f97295484 /include/optional
parenta1c7fbb6f9cb88ed48e5c2f7fde3913ec88e20b2 (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 'include/optional')
-rw-r--r--include/optional2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/optional b/include/optional
index ff3e929e1..180f63ffc 100644
--- a/include/optional
+++ b/include/optional
@@ -164,7 +164,7 @@ class _LIBCPP_EXCEPTION_ABI bad_optional_access
{
public:
// Get the key function ~bad_optional_access() into the dylib
- virtual ~bad_optional_access();
+ virtual ~bad_optional_access() _NOEXCEPT;
virtual const char* what() const _NOEXCEPT;
};