Remove boost::hash_value() overloads.

This addresses https://ripplelabs.atlassian.net/browse/RIPD-102
This commit is contained in:
Howard Hinnant
2014-07-02 12:37:13 -04:00
committed by Nik Bougalis
parent 0c5c901222
commit f5eb22253d
8 changed files with 31 additions and 57 deletions

View File

@@ -137,15 +137,6 @@ bool operator< (Endpoint const& lhs, Endpoint const& rhs)
//------------------------------------------------------------------------------
std::size_t hash_value (Endpoint const& endpoint)
{
std::size_t seed (hash_value (endpoint.address ()));
// boost::hash_combine()
seed ^= (std::hash <Port> () (endpoint.port ()))
+ 0x9e3779b9 + (seed << 6) + (seed >> 2);
return seed;
}
std::istream& operator>> (std::istream& is, Endpoint& endpoint)
{
// VFALCO TODO Support ipv6!