Question 71
HardWhy can throwing an exception from a destructor be dangerous in C++?
- A.
Destructors can't throw at all
- B.
If it happens during stack unwinding from another exception, std::terminate is called
- C.
It leaks memory always
- D.
It is ignored
Sign up free to see the answer and a step-by-step explanation.