Skip to content

Commit

Permalink
Merge pull request monero-project#8435
Browse files Browse the repository at this point in the history
cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
  • Loading branch information
luigi1111 committed Jul 15, 2022
2 parents 9df069f + cf3be99 commit b6a029f
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 b6a029f

Please sign in to comment.