The use of dynamic-exception-speciļ¬cations is deprecated. - IS
Instead:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
struct A
{
void foo() noexcept ; // will never throw
void bar() ; // may throw
// will never throw if default constructor of B will never throw
// may thow otherwise
A() noexcept( std::is_nothrow_default_constructible<B>::value ) ;
// ...
B b ;
};