From cf3be9926f70a898a9f8ae0c4f98aa169757da5e Mon Sep 17 00:00:00 2001 From: j-berman Date: Wed, 13 Jul 2022 22:44:43 -0700 Subject: Template hash func to fix compiler error on < gcc-6 --- contrib/epee/include/net/enums.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'contrib/epee/include/net') 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 + { + std::size_t operator()(const epee::net_utils::zone _z) const + { + return static_cast(_z); + } + }; +} // std -- cgit v1.2.3