mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Remove boost::hash_value() overloads.
This addresses https://ripplelabs.atlassian.net/browse/RIPD-102
This commit is contained in:
committed by
Nik Bougalis
parent
0c5c901222
commit
f5eb22253d
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user