From 37222c2bf4225dc8a42a688122956b935b4a8778 Mon Sep 17 00:00:00 2001 From: Wesley Shillingford Date: Thu, 3 Jan 2019 15:47:49 +0000 Subject: [PATCH] Remove ip_address_hash from std namespace (#1499) --- nano/node/common.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/nano/node/common.hpp b/nano/node/common.hpp index 0af80fa5..6f1bc79d 100644 --- a/nano/node/common.hpp +++ b/nano/node/common.hpp @@ -69,19 +69,6 @@ struct endpoint_hash<4> return result; } }; -} - -namespace std -{ -template <> -struct hash<::nano::endpoint> -{ - size_t operator() (::nano::endpoint const & endpoint_a) const - { - endpoint_hash ehash; - return ehash (endpoint_a); - } -}; template struct ip_address_hash { @@ -104,6 +91,19 @@ struct ip_address_hash<4> return result; } }; +} + +namespace std +{ +template <> +struct hash<::nano::endpoint> +{ + size_t operator() (::nano::endpoint const & endpoint_a) const + { + endpoint_hash ehash; + return ehash (endpoint_a); + } +}; template <> struct hash {