job/queue: add move assignment operator for cookie
This commit is contained in:
parent
0cc0178ab5
commit
503ed940ac
@ -81,7 +81,11 @@ namespace util::job {
|
|||||||
std::swap (data, rhs.data);
|
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 (const cookie&) = delete;
|
||||||
cookie& operator= (const cookie&) = delete;
|
cookie& operator= (const cookie&) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user