#include #include //code std::future fun() { return std::promise().get_future(); } int main() try { fun().get(); } catch (std::exception const &exc) { std::cerr << exc.what() << '\n'; } //=