Skip to content

Commit

Permalink
Fix reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbuibui committed May 30, 2024
1 parent 6a4d4ef commit 1932002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redGrapes/task/future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ namespace redGrapes
template<typename TTask>
struct Future<void, TTask>
{
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;
Expand Down

0 comments on commit 1932002

Please sign in to comment.