From defd5612a406c71c2c96bcca78f6b4a7dde155c9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 15 Jul 2017 15:20:35 +0300 Subject: [PATCH] Replace exception specification with noexcept(false) (except.spec. invalid in C++17) --- test/has_nothrow_destructor_test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/has_nothrow_destructor_test.cpp b/test/has_nothrow_destructor_test.cpp index 30d23a7..0f70435 100644 --- a/test/has_nothrow_destructor_test.cpp +++ b/test/has_nothrow_destructor_test.cpp @@ -30,13 +30,20 @@ struct noexcept_destruct ~noexcept_destruct()noexcept; }; -#endif +struct throwing_base +{ + ~throwing_base() noexcept(false); +}; + +#else struct throwing_base { ~throwing_base() throw(int); }; +#endif + struct throwing_derived : public throwing_base {}; struct throwing_contained{ throwing_base data; };