#include #include #include using namespace std; int main(){ std::future foo = std::async (std::launch::async, []{cout << "hello " << 1/0 << endl;}); // foo.get(); return 0; }