9e4075b7be
In file included from FrequencyDBImpl_cache.cc:34:
In file included from ./FrequencyDBImpl_cache.h:34:
In file included from ../../src/includes/LRUCache.h:34:
/usr/include/c++/v1/map:476:17: error: no matching function for call to object of type 'const LRUCache<std::__1::basic_string<char>, Ref<FrequencyDBImpl_cache::CacheEntry> >::LRUCacheNodeKeyCompare'
{return static_cast<const _Compare&>(*this)(__x.__cc.first, __y);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 lines
345 B
C++
12 lines
345 B
C++
--- src/includes/LRUCache.h.orig 2018-08-14 08:00:27 UTC
|
|
+++ src/includes/LRUCache.h
|
|
@@ -60,7 +60,7 @@ template<class KeyType, class ValueType> class LRUCach
|
|
{
|
|
public:
|
|
bool operator()(const NodeType *a,
|
|
- const NodeType *b)
|
|
+ const NodeType *b) const
|
|
{
|
|
return a->key < b->key;
|
|
}
|