Summary

The topics discussed in this chapter are relatively new. Not all compiler and library implementations support them. The industry has not accumulated much experience in using them. This is why you should use these C++ features with caution.

Exceptions come with significant memory and execution time penalty. This might be important for some applications. For most applications, this is not very important. What is important, however, is how to use exceptions to structure and simplify the flow of control in the application.

It seems that exceptions that throw values of built-in types are not very useful, because the exception handlers cannot distinguish between values of the same type thrown from different places in the source code. Designing ...

Get Core C++ A Software Engineering Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.