1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/mail/spamprobe/files/patch-src_includes_LRUCache.h
Tobias Kortkamp 9e4075b7be mail/spamprobe: Fix build with Clang/libc++
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);}
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-14 08:56:57 +00:00

11 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;
}