Browse Source

If (for example) the new max_size must be 5 then at the end the queue.size() must be <= 5, so the exit condition must be <=, so the continuing condition must be > (and not >= as it was).

0.8
xanatos 13 years ago
parent
commit
16d5671943
  1. 2
      src/mruset.h

2
src/mruset.h

@ -51,7 +51,7 @@ public:
size_type max_size(size_type s) size_type max_size(size_type s)
{ {
if (s) if (s)
while (queue.size() >= s) while (queue.size() > s)
{ {
set.erase(queue.front()); set.erase(queue.front());
queue.pop_front(); queue.pop_front();

Loading…
Cancel
Save