Skip to content

Commit

Permalink
Remove ip_address_hash from std namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wezrule authored and rkeene committed Dec 28, 2018
1 parent 2eda517 commit a2605c0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions nano/node/common.hpp
Expand Up @@ -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<sizeof (size_t)> ehash;
return ehash (endpoint_a);
}
};
template <size_t size>
struct ip_address_hash
{
Expand All @@ -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<sizeof (size_t)> ehash;
return ehash (endpoint_a);
}
};
template <>
struct hash<boost::asio::ip::address>
{
Expand Down

0 comments on commit a2605c0

Please sign in to comment.