Fix long line.
This commit is contained in:
parent
9995748ebc
commit
0355fc5980
@ -272,11 +272,11 @@ template <typename InternetProtocol>
|
|||||||
struct hash<asio::ip::basic_endpoint<InternetProtocol> >
|
struct hash<asio::ip::basic_endpoint<InternetProtocol> >
|
||||||
{
|
{
|
||||||
std::size_t operator()(
|
std::size_t operator()(
|
||||||
const asio::ip::basic_endpoint<InternetProtocol>& endpoint)
|
const asio::ip::basic_endpoint<InternetProtocol>& ep)
|
||||||
const ASIO_NOEXCEPT
|
const ASIO_NOEXCEPT
|
||||||
{
|
{
|
||||||
std::size_t hash1 = std::hash<asio::ip::address>()(endpoint.address());
|
std::size_t hash1 = std::hash<asio::ip::address>()(ep.address());
|
||||||
std::size_t hash2 = std::hash<unsigned short>()(endpoint.port());
|
std::size_t hash2 = std::hash<unsigned short>()(ep.port());
|
||||||
return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2));
|
return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user