forked from boostorg/type_traits
Replace exception specification with noexcept(false) (except.spec. invalid in C++17)
This commit is contained in:
@ -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; };
|
||||
|
Reference in New Issue
Block a user