toft icon indicating copy to clipboard operation
toft copied to clipboard

bug in intrusive_list.h

Open anqin opened this issue 11 years ago • 0 comments

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());
    
  •    erase(&front());
    
    } void pop_back() { assert(!empty());
  •    erase(back());
    
  •    erase(&back());
    
    }

anqin avatar May 05 '13 08:05 anqin