X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a72556fa570ba8edb8452a33e83851c566af404..70f53431d1e178e20a58576b7016df141fa97dc3:/include/xbt/future.hpp diff --git a/include/xbt/future.hpp b/include/xbt/future.hpp index 95ab69d666..31870ce502 100644 --- a/include/xbt/future.hpp +++ b/include/xbt/future.hpp @@ -12,6 +12,7 @@ #include #include #include +#include // std::future_error #include #include #include @@ -66,7 +67,7 @@ public: break; } default: - throw std::logic_error("Invalid result"); + throw std::future_error(std::future_errc::no_state); } } private: