Update phmap::Hash so that std::hash<Foo*> can be overridden - issue #168

This commit is contained in:
greg7mdp
2022-10-01 00:01:18 -04:00
parent 267fc4ddc8
commit a10ad015db
2 changed files with 4 additions and 11 deletions
+1 -10
View File
@@ -164,16 +164,7 @@ struct Hash
return _hash<T>(val);
}
};
template <class T>
struct Hash<T *>
{
inline size_t operator()(const T *val) const noexcept
{
return static_cast<size_t>(reinterpret_cast<const uintptr_t>(val));
}
};
template<class ArgumentType, class ResultType>
struct phmap_unary_function
{