mirror of
https://github.com/monero-project/monero.git
synced 2025-12-10 07:22:34 +01:00
Template hash func to fix compiler error on < gcc-6
This commit is contained in:
@@ -64,3 +64,13 @@ namespace net_utils
|
||||
} // net_utils
|
||||
} // epee
|
||||
|
||||
namespace std
|
||||
{
|
||||
template<> struct hash<epee::net_utils::zone>
|
||||
{
|
||||
std::size_t operator()(const epee::net_utils::zone _z) const
|
||||
{
|
||||
return static_cast<std::size_t>(_z);
|
||||
}
|
||||
};
|
||||
} // std
|
||||
|
||||
Reference in New Issue
Block a user