- Exercise

In this exercise, you will throw and handle an exception using std::promise and std::future.

We'll cover the following


Implement a program where the promise throws an exception and that exception is handled in the associated future. As a starting point, you can use the code from the previous lesson and invoke it with the denominator.

Get hands-on with 1000+ tech skills courses.