fix LRU cache definition

This commit is contained in:
Vadim Skipin 2017-09-11 13:23:13 +03:00 committed by alexey-milovidov
parent 9cafeb9e85
commit 7576cb2c18
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ struct TrivialWeightFunction
/// Cache starts to evict entries when their total weight exceeds max_size and when expiration time of these
/// entries is due.
/// Value weight should not change after insertion.
template <typename TKey, typename TMapped, typename HashFunction = std::hash<TMapped>, typename WeightFunction = TrivialWeightFunction<TMapped>>
template <typename TKey, typename TMapped, typename HashFunction = std::hash<TKey>, typename WeightFunction = TrivialWeightFunction<TMapped>>
class LRUCache
{
public: