util/IntrusiveList: disallow copying IntrusiveListHook
This commit is contained in:
parent
e25e0030e7
commit
0ed24f3a05
@ -49,6 +49,11 @@ protected:
|
|||||||
IntrusiveListNode siblings;
|
IntrusiveListNode siblings;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
IntrusiveListHook() noexcept = default;
|
||||||
|
|
||||||
|
IntrusiveListHook(const IntrusiveListHook &) = delete;
|
||||||
|
IntrusiveListHook &operator=(const IntrusiveListHook &) = delete;
|
||||||
|
|
||||||
void unlink() noexcept {
|
void unlink() noexcept {
|
||||||
siblings.next->prev = siblings.prev;
|
siblings.next->prev = siblings.prev;
|
||||||
siblings.prev->next = siblings.next;
|
siblings.prev->next = siblings.next;
|
||||||
|
Loading…
Reference in New Issue
Block a user