Fix for older compilers

pull/22/head
SChernykh 2021-09-09 11:44:40 +02:00
parent 2fcd2dce66
commit 3aa270a072
1 changed files with 5 additions and 1 deletions

View File

@ -121,8 +121,10 @@ bool resolve_host(std::string& host, bool& is_v6);
} // namespace p2pool
namespace std {
template<>
struct std::hash<p2pool::hash>
struct hash<p2pool::hash>
{
FORCEINLINE size_t operator()(const p2pool::hash& value) const
{
@ -133,3 +135,5 @@ struct std::hash<p2pool::hash>
return static_cast<size_t>(result);
}
};
} // namespace std