flat_hash_map test passes

This commit is contained in:
greg
2019-03-24 18:10:20 -04:00
parent 31f86eb669
commit ddebdfbcdc
2 changed files with 19 additions and 3 deletions
+2 -3
View File
@@ -47,10 +47,9 @@ template <class T> T phmap_max(T a, T b) { return a >= b ? a : b; }
template <class T>
struct Hash
{
inline size_t operator()(const T &__v) const noexcept
inline size_t operator()(const T& __v) noexcept
{
PHMAP_HASH_CLASS<T> hasher;
return hasher(__v);
return PHMAP_HASH_CLASS<T>()(__v);
}
};