27.1 — The need for exceptions
In the previous lesson on handling errors, we talked about ways to use assert(), std::cerr, and exit() to handle errors. However, we deferred one further topic that we will now cover: exceptions. When return codes fail When writing reusable code, error handling is a necessity. One of the most common …