diff --git a/src/util.h b/src/util.h index d60e1ce..2f25360 100644 --- a/src/util.h +++ b/src/util.h @@ -121,8 +121,10 @@ bool resolve_host(std::string& host, bool& is_v6); } // namespace p2pool +namespace std { + template<> -struct std::hash +struct hash { FORCEINLINE size_t operator()(const p2pool::hash& value) const { @@ -133,3 +135,5 @@ struct std::hash return static_cast(result); } }; + +} // namespace std