- Exercise
In this exercise, you will throw and handle an exception using std::promise and std::future.
We'll cover the following
Task
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 1400+ tech skills courses.