From 82153c8775fa57339fe0d56a223f277d409e4e77 Mon Sep 17 00:00:00 2001 From: slact Date: Wed, 1 Sep 2021 07:01:09 -0400 Subject: [PATCH] fix failing build with boost >= 1.76 (#3433) --- nano/node/common.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/node/common.hpp b/nano/node/common.hpp index 3d29457f4..d3b5627e9 100644 --- a/nano/node/common.hpp +++ b/nano/node/common.hpp @@ -112,6 +112,7 @@ struct hash<::nano::tcp_endpoint> return ehash (endpoint_a); } }; +#ifndef BOOST_ASIO_HAS_STD_HASH template <> struct hash { @@ -121,6 +122,7 @@ struct hash return ihash (ip_a); } }; +#endif } namespace boost {