fork download
  1. #include <future> // for async.
  2. #include <cstdio> // for printf.
  3. #include <exception> // for exception.
  4.  
  5. int main()
  6. {
  7. try
  8. {
  9. std::async([]{}).wait();
  10. }
  11. catch(std::exception const &ex)
  12. {
  13. std::printf(">%s\n", ex.what());
  14. }
  15. }
  16.  
Success #stdin #stdout 0s 3040KB
stdin
Standard input is empty
stdout
>Unknown error 4294967295