From 503ed940ac7272a755dfbebe4d32ef84e2a456b8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 24 Jul 2018 15:48:03 +1000 Subject: [PATCH] job/queue: add move assignment operator for cookie --- job/queue.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/job/queue.hpp b/job/queue.hpp index 9f289709..360858ab 100644 --- a/job/queue.hpp +++ b/job/queue.hpp @@ -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;