X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6126924e83eded994bef252b90becedc31015a59..4f2e9b5f5dd58b3493e5ce66014e52c76f68a777:/include/xbt/future.hpp diff --git a/include/xbt/future.hpp b/include/xbt/future.hpp index be488ed9d7..521b02ba94 100644 --- a/include/xbt/future.hpp +++ b/include/xbt/future.hpp @@ -134,7 +134,7 @@ public: T value = std::move(value_); value_.~T(); status_ = ResultStatus::invalid; - return std::move(value); + return value; } case ResultStatus::exception: { std::exception_ptr exception = std::move(exception_);