From 0ed24f3a0516627b19eeb7abb6265809bc55a973 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Dec 2021 14:57:48 +0100 Subject: [PATCH] util/IntrusiveList: disallow copying IntrusiveListHook --- src/util/IntrusiveList.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index a016c63e0..14f8f6679 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -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;