Remove ip_address_hash from std namespace (#1499)
This commit is contained in:
parent
c946cde96e
commit
37222c2bf4
1 changed files with 13 additions and 13 deletions
|
@ -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>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue