Merge pull request #8435

cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
This commit is contained in:
luigi1111 2022-07-15 11:43:15 -04:00
commit b6a029f222
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -64,3 +64,13 @@ namespace net_utils
} // net_utils } // net_utils
} // epee } // 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