
Hello,
I am throwing an exception from a packaged_task, and then trying to catch it
with f.get() (where f is a unique_future); it doesn't work, the program just
terminates with:
terminate called after throwing an instance of
'boost::exception_detail::clone_implboost::unknown_exception'
what(): std::exception
Is there a simple example somewhere, or could someone provide one, that
makes clear how this mechanism is supposed to work? The Threads
documentation does not show how to do this...
Here is my simple program, based on the example in the docs:
#include