C++ destructors are noexcept by default, but what about:
struct A {
A() = default; // noexcept?
A(const A &) = default; // noexcept?
A(A &&) = default; // noexcept?
virtual ~A() = default; // noexcept
A &operator=(const A &) = default; // noexcept?
A &operator=(A &&) = default; // noexcept?
...
};
struct B : A {
B() = default; // noexcept?
B(const B &) = default; // noexcept?
B(B &&) = default; // noexcept?
virtual ~B() = default; // noexcept
B &operator=(const B &) = default; // noexcept?
B &operator=(B &&) = default; // noexcept?
...
};
↧