diff --git a/redGrapes/task/future.hpp b/redGrapes/task/future.hpp index d57f0162..63f6a123 100644 --- a/redGrapes/task/future.hpp +++ b/redGrapes/task/future.hpp @@ -76,11 +76,11 @@ namespace redGrapes template struct Future { - Future(TTask& task) : task(task), taken(false) + Future(TTask& task) : taken(false), task(task) { } - Future(Future&& other) : task(other.task), taken(other.taken) + Future(Future&& other) : taken(other.taken), task(other.task) { SPDLOG_TRACE("MOVE future"); other.taken = true;