Skip to content

Commit b6a029f

Browse files
committed
Merge pull request #8435
cf3be99 Template hash func to fix compiler error on < gcc-6 (j-berman)
2 parents 9df069f + cf3be99 commit b6a029f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/epee/include/net/enums.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,13 @@ namespace net_utils
6464
} // net_utils
6565
} // epee
6666

67+
namespace std
68+
{
69+
template<> struct hash<epee::net_utils::zone>
70+
{
71+
std::size_t operator()(const epee::net_utils::zone _z) const
72+
{
73+
return static_cast<std::size_t>(_z);
74+
}
75+
};
76+
} // std

0 commit comments

Comments
 (0)