InterviewSolution
| 1. |
Discuss The Effects Occur, After An Exception Thrown By A Member Function Is Unspecified By An Exception Specification? |
|
Answer» When a function THROWS an exception, not given in the specification, the exception is passed to a system function named unexpected. The unexpected function CALLS the latest function named as an ARGUMENT in a CALL to the set_unexpected function, which RETURNS its current settings. A function with no exception specification, by default, calls the terminate function, which finally calls the abort (function to terminate the program). When a function throws an exception, not given in the specification, the exception is passed to a system function named unexpected. The unexpected function calls the latest function named as an argument in a call to the set_unexpected function, which returns its current settings. A function with no exception specification, by default, calls the terminate function, which finally calls the abort (function to terminate the program). |
|