Fix long line.

This commit is contained in:
Christopher Kohlhoff 2021-01-16 10:12:58 +11:00
parent 9995748ebc
commit 0355fc5980

View File

@ -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));
} }
}; };