Skip to content

Commit

Permalink
Template hash func to fix compiler error on < gcc-6
Browse files Browse the repository at this point in the history
  • Loading branch information
j-berman committed Jul 14, 2022
1 parent cfdee9b commit cf3be99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/epee/include/net/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf3be99

Please sign in to comment.