Remove ip_address_hash from std namespace (#1499)

This commit is contained in:
Wesley Shillingford 2019-01-03 15:47:49 +00:00 committed by Roy Keene
commit 37222c2bf4

View file

@ -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
{
@ -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>
{