util/IntrusiveList: disallow copying IntrusiveListHook

This commit is contained in:
Max Kellermann 2021-12-02 14:57:48 +01:00 committed by Max Kellermann
parent e25e0030e7
commit 0ed24f3a05

View File

@ -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;