job/queue: add move assignment operator for cookie

This commit is contained in:
Danny Robson 2018-07-24 15:48:03 +10:00
parent 0cc0178ab5
commit 503ed940ac

View File

@ -81,7 +81,11 @@ namespace util::job {
std::swap (data, rhs.data);
}
cookie& operator= (cookie&&) = delete;
cookie& operator= (cookie &&rhs)
{
std::swap (data, rhs.data);
return *this;
}
cookie (const cookie&) = delete;
cookie& operator= (const cookie&) = delete;