#include <future> // for async.
#include <cstdio> // for printf.
#include <exception> // for exception.
int main()
{
try
{
std::async([]{}).wait();
}
catch(std::exception const &ex)
{
std::printf(">%s\n", ex.what());
}
}
I2luY2x1ZGUgPGZ1dHVyZT4gICAgLy8gZm9yIGFzeW5jLgojaW5jbHVkZSA8Y3N0ZGlvPgkvLyBmb3IgcHJpbnRmLgojaW5jbHVkZSA8ZXhjZXB0aW9uPgkvLyBmb3IgZXhjZXB0aW9uLgoKaW50IG1haW4oKQp7Cgl0cnkKCXsKCQlzdGQ6OmFzeW5jKFtde30pLndhaXQoKTsKCX0KCWNhdGNoKHN0ZDo6ZXhjZXB0aW9uIGNvbnN0ICZleCkKCXsKCQlzdGQ6OnByaW50ZigiPiVzXG4iLCBleC53aGF0KCkpOwoJfQp9Cg==