diff --git a/BAN/include/BAN/HashMap.h b/BAN/include/BAN/HashMap.h index f78cc929..0a1af45a 100644 --- a/BAN/include/BAN/HashMap.h +++ b/BAN/include/BAN/HashMap.h @@ -98,7 +98,8 @@ namespace BAN struct EntryHash { - constexpr bool operator()(const Key& a) + template U> + constexpr bool operator()(const U& a) { return HASH()(a); } @@ -110,7 +111,8 @@ namespace BAN struct EntryComp { - constexpr bool operator()(const Entry& a, const Key& b) + template U> + constexpr bool operator()(const Entry& a, const U& b) { return COMP()(a.key, b); }