FAQ 26.07 Should destructors throw exceptions when they fail?

No.

If a destructor is invoked during the stack-unwinding process initiated by the throwing of another exception, and that destructor throws an exception, terminate() is invoked, which kills the program.



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net