Skip to content

Commit

Permalink
fix failing build with boost >= 1.76 (#3433)
Browse files Browse the repository at this point in the history
  • Loading branch information
slact committed Sep 1, 2021
1 parent db6c162 commit 82153c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/node/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ struct hash<::nano::tcp_endpoint>
return ehash (endpoint_a);
}
};
#ifndef BOOST_ASIO_HAS_STD_HASH
template <>
struct hash<boost::asio::ip::address>
{
Expand All @@ -121,6 +122,7 @@ struct hash<boost::asio::ip::address>
return ihash (ip_a);
}
};
#endif
}
namespace boost
{
Expand Down

0 comments on commit 82153c8

Please sign in to comment.