fix failing build with boost >= 1.76 (#3433)

This commit is contained in:
slact 2021-09-01 07:01:09 -04:00 committed by GitHub
commit 82153c8775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,7 @@ struct hash<::nano::tcp_endpoint>
return ehash (endpoint_a); return ehash (endpoint_a);
} }
}; };
#ifndef BOOST_ASIO_HAS_STD_HASH
template <> template <>
struct hash<boost::asio::ip::address> struct hash<boost::asio::ip::address>
{ {
@ -121,6 +122,7 @@ struct hash<boost::asio::ip::address>
return ihash (ip_a); return ihash (ip_a);
} }
}; };
#endif
} }
namespace boost namespace boost
{ {