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 {