From 3aa270a072cbd517b01754bc4ab677dd8370114d Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 9 Sep 2021 11:44:40 +0200 Subject: [PATCH] Fix for older compilers --- src/util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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