mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-20 13:38:47 -06:00
Fix for older compilers
This commit is contained in:
parent
2fcd2dce66
commit
3aa270a072
@ -121,8 +121,10 @@ bool resolve_host(std::string& host, bool& is_v6);
|
|||||||
|
|
||||||
} // namespace p2pool
|
} // namespace p2pool
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct std::hash<p2pool::hash>
|
struct hash<p2pool::hash>
|
||||||
{
|
{
|
||||||
FORCEINLINE size_t operator()(const p2pool::hash& value) const
|
FORCEINLINE size_t operator()(const p2pool::hash& value) const
|
||||||
{
|
{
|
||||||
@ -133,3 +135,5 @@ struct std::hash<p2pool::hash>
|
|||||||
return static_cast<size_t>(result);
|
return static_cast<size_t>(result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace std
|
||||||
|
Loading…
Reference in New Issue
Block a user