cpp/thread/future error

The class std defines an exception object that is thrown on failure by the functions in the thread library that deal with asynchronous execution and shared states (std, std, etc). Similar to std, this exception carries an error code compatible with std.