util/IntrusiveHashSet: add concept checks to *Operators

This requires adding another template argument and reordering the others.
This commit is contained in:
Max Kellermann
2024-04-02 17:37:31 +02:00
committed by Max Kellermann
parent 91ca502e10
commit 6a99f20828
5 changed files with 25 additions and 19 deletions

View File

@@ -32,9 +32,9 @@ class InputCacheManager {
IntrusiveList<InputCacheItem> items_by_time;
IntrusiveHashSet<InputCacheItem, 127,
IntrusiveHashSetOperators<std::hash<std::string_view>,
std::equal_to<std::string_view>,
ItemGetUri>> items_by_uri;
IntrusiveHashSetOperators<InputCacheItem, ItemGetUri,
std::hash<std::string_view>,
std::equal_to<std::string_view>>> items_by_uri;
public:
explicit InputCacheManager(const InputCacheConfig &config) noexcept;