summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/optional
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-02-05 20:06:38 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-02-05 20:06:38 +0000
commite29b1ed50b145e5b1adc87bb5e91377df5d32839 (patch)
tree23e6e3ffbe59a0be50063793de76869aedbd382f /libcxx/test/std/utilities/optional
parentcac328f25efb6557969058027eaf737a287ee118 (diff)
downloadbcm5719-llvm-e29b1ed50b145e5b1adc87bb5e91377df5d32839.tar.gz
bcm5719-llvm-e29b1ed50b145e5b1adc87bb5e91377df5d32839.zip
Change the base class of std::bad_optional_access. This is a (subtle) ABI change, and is in response to http://http://wg21.link/LWG2806, which I *expect* to be adopted in Kona. I am making this change now in anticipation, and will get it into 4.0, because (a) 4.0 is the first release with std::optional, and (b) I don't want to make an ABI-change later, when the user base should be significantly larger. Note that I didn't change std::experimental::bad_optional_access, because that's still specified to derive from std::logic_error.
llvm-svn: 294133
Diffstat (limited to 'libcxx/test/std/utilities/optional')
-rw-r--r--libcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp b/libcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp
index 85e36d2c107..d96f70bb7ba 100644
--- a/libcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp
+++ b/libcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp
@@ -11,7 +11,7 @@
// <optional>
-// class bad_optional_access : public logic_error
+// class bad_optional_access : public exception
#include <optional>
#include <type_traits>
@@ -20,6 +20,6 @@ int main()
{
using std::bad_optional_access;
- static_assert(std::is_base_of<std::logic_error, bad_optional_access>::value, "");
- static_assert(std::is_convertible<bad_optional_access*, std::logic_error*>::value, "");
+ static_assert(std::is_base_of<std::exception, bad_optional_access>::value, "");
+ static_assert(std::is_convertible<bad_optional_access*, std::exception*>::value, "");
}
OpenPOWER on IntegriCloud