Replace exception specification with noexcept(false) (except.spec. invalid in C++17)

This commit is contained in:
Peter Dimov
2017-07-15 15:20:35 +03:00
committed by jzmaddock
parent d59b9f419e
commit defd5612a4

View File

@ -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; };