Fixed bug with reusable caches count.

This commit is contained in:
vng 2015-10-29 11:33:09 +03:00
parent c9b6997726
commit f78f0b5b51

View file

@ -105,7 +105,10 @@ public:
};
public:
explicit MwmSet(size_t cacheSize = 5) : m_cacheSize(cacheSize) {}
// Default value 32=2^5 was from the very begining.
// Later, we replaced my::Cache with the std::deque, but forgot to change
// logarithm constant 5 with actual size 32. Now it's fixed.
explicit MwmSet(size_t cacheSize = 32) : m_cacheSize(cacheSize) {}
virtual ~MwmSet() = default;
class MwmValueBase