aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-07-13 22:44:43 -0700
committerj-berman <justinberman@protonmail.com>2022-07-13 22:44:43 -0700
commitcf3be9926f70a898a9f8ae0c4f98aa169757da5e (patch)
tree214972016d6acc2650bb609cd4a35eb9fe45e2c4
parentMerge pull request #8421 (diff)
downloadmonero-cf3be9926f70a898a9f8ae0c4f98aa169757da5e.tar.xz
Template hash func to fix compiler error on < gcc-6
-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