Commit 0ed24f3a authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/IntrusiveList: disallow copying IntrusiveListHook

parent e25e0030
......@@ -49,6 +49,11 @@ protected:
IntrusiveListNode siblings;
public:
IntrusiveListHook() noexcept = default;
IntrusiveListHook(const IntrusiveListHook &) = delete;
IntrusiveListHook &operator=(const IntrusiveListHook &) = delete;
void unlink() noexcept {
siblings.next->prev = siblings.prev;
siblings.prev->next = siblings.next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment