toft
toft copied to clipboard
bug in intrusive_list.h
erase(front()); ==> erase(&front()); erase(back()); ==> erase(&back());
should be:
diff --git a/base/intrusive_list.h b/base/intrusive_list.h index 4ca2944..522ca2b 100644 --- a/base/intrusive_list.h +++ b/base/intrusive_list.h @@ -243,12 +243,12 @@ public: void pop_front() { assert(!empty());
-
erase(front());
-
} void pop_back() { assert(!empty());erase(&front());
-
erase(back());
-
}erase(&back());