Chapter 18. Constructor Failures, Part 2: Absorption?
This Item analyzes constructor failures in detail, shows why the C++ rules should work the way they do, and demonstrates the implications for constructor exception specifications.
In Item 17 Example 17-1, if the
Bconstructor throws an exception, is it possible for the
Cconstructor to absorb the exception and emit no exception at all? Justify your answer, explaining by example why this is as it should be.
What are the minimal requirements that
Bmust meet in order for us to safely put an empty throw-specification on