How to handle error in the destructor?
(a) throwing
(b) terminate
(c) both throwing & terminate
(d) try
This question was addressed to me in a national level competition.
My question comes from Exceptions That Are Not Errors topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++