Skip to content

Commit

Permalink
Deprecating any use of MoveOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
codemercenary committed Jul 31, 2014
1 parent 888203c commit 696cb2c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/autowiring/BasicThread.cpp
Expand Up @@ -146,10 +146,9 @@ bool BasicThread::Start(std::shared_ptr<Object> outstanding) {
}

// Kick off a thread and return here
MoveOnly<std::shared_ptr<Object>> out(std::move(outstanding));
m_state->m_thisThread = std::thread(
[this, out] {
this->DoRun(std::move(out.value));
[this, outstanding] () mutable {
this->DoRun(std::move(outstanding));
}
);
return true;
Expand Down

0 comments on commit 696cb2c

Please sign in to comment.