4 ms·
Just mark all destructors noexcept?
by scaredginger 4y ago
Just mark all destructors noexcept?
- jchw 4y agoNoexcept doesn't prevent your dtor from throwing, it just means that if it does throw, it will call std::terminate rather than unwind (thus, callers can assume it doesn't throw, since it will abort instead.) For the problem mentioned in the article, this is not a solution.
- usrnm 4y agoDestructors already are noexcept by default
- deleted 4y ago[deleted]