Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix gcc 9 warnings. Have to check if the std::move removal is harmful
[simgrid.git] / include / xbt / future.hpp
index be488ed..521b02b 100644 (file)
@@ -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_);