aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/epee/include')
-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