Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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).
  • Loading branch information...
commit 16d567194305d728ca433de4b78eb049a86aa450 1 parent 4c6b210
@xanatos xanatos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/mruset.h
View
2  src/mruset.h
@@ -51,7 +51,7 @@ template <typename T> class mruset
size_type max_size(size_type s)
{
if (s)
- while (queue.size() >= s)
+ while (queue.size() > s)
{
set.erase(queue.front());
queue.pop_front();
Please sign in to comment.
Something went wrong with that request. Please try again.