Template hash func to fix compiler error on < gcc-6

This commit is contained in:
j-berman 2022-07-13 22:44:43 -07:00
parent cfdee9ba69
commit cf3be9926f
1 changed files with 10 additions and 0 deletions

View File

@ -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