util/IntrusiveForwardList: fix move operator, really swap counter

This commit is contained in:
Max Kellermann 2023-09-12 20:36:53 +02:00 committed by Max Kellermann
parent bef7ce37d9
commit df7ed27b78
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public:
IntrusiveForwardList &operator=(IntrusiveForwardList &&src) noexcept {
using std::swap;
swap(head, src.head);
swap(counter, counter);
swap(counter, src.counter);
return *this;
}