aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-07-15 11:43:15 -0400
committerluigi1111 <luigi1111w@gmail.com>2022-07-15 11:43:15 -0400
commitb6a029f222abada36c7bc6c65899a4ac969d7dee (patch)
tree88ff9c93bfa48f508153f0a663fbda0d4e1bdced
parentMerge pull request #8426 (diff)
parentTemplate hash func to fix compiler error on < gcc-6 (diff)
downloadmonero-b6a029f222abada36c7bc6c65899a4ac969d7dee.tar.xz
Merge pull request #8435v0.18.0.0
cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
-rw-r--r--contrib/epee/include/net/enums.h10
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