mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-22 02:14:30 +00:00
Fix for older compilers
This commit is contained in:
parent
2fcd2dce66
commit
3aa270a072
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue