X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f2e8075d660a354a3aabf065998f42802f9cc11..0a41f5d471ce7d2afcaf32a96e653c2ae397d7fb:/include/simgrid/kernel/future.hpp?ds=sidebyside diff --git a/include/simgrid/kernel/future.hpp b/include/simgrid/kernel/future.hpp index a11c8ec40c..ffd1a33e29 100644 --- a/include/simgrid/kernel/future.hpp +++ b/include/simgrid/kernel/future.hpp @@ -261,7 +261,8 @@ public: Future(Future&& that) : state_(std::move(that.state_)) {} Future& operator=(Future&& that) { - state_ = std::move(that.stat_); + state_ = std::move(that.state_); + return *this; } /** Whether the future is valid:.