diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-07-15 11:43:15 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-07-15 11:43:15 -0400 |
commit | b6a029f222abada36c7bc6c65899a4ac969d7dee (patch) | |
tree | 88ff9c93bfa48f508153f0a663fbda0d4e1bdced /contrib | |
parent | Merge pull request #8426 (diff) | |
parent | Template hash func to fix compiler error on < gcc-6 (diff) | |
download | monero-0.18.0.0.tar.xz |
Merge pull request #8435v0.18.0.0
cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/net/enums.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/epee/include/net/enums.h b/contrib/epee/include/net/enums.h index 8c402da20..b9e05a3eb 100644 --- a/contrib/epee/include/net/enums.h +++ b/contrib/epee/include/net/enums.h @@ -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 |