Skip to content

Commit

Permalink
Fix reorder warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbuibui committed May 30, 2024
1 parent 1ab6508 commit 509e433
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 @@ -23,11 +23,11 @@ namespace redGrapes
template<typename T, typename TTask>
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;
Expand Down

0 comments on commit 509e433

Please sign in to comment.