Skip to content
Snippets Groups Projects
Commit a0d9a6f8 authored by Markus Blatt's avatar Markus Blatt
Browse files

When last element is removed via pop_front tail should be 0.

[[Imported from SVN: r1824]]
parent 840fc897
Branches
Tags
No related merge requests found
......@@ -428,6 +428,8 @@ namespace Dune
inline void SLList<T,A>::pop_front()
{
assert(head_!=0);
if(head_ == tail_)
tail_ = 0;
Element* tmp = head_;
head_=head_->next_;
beforeHead_.next_ = head_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment