From 0e25584e786914462c1eff3dd013bdb7f5ddf026 Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Sun, 21 Apr 2024 05:01:47 +0300 Subject: [PATCH] Make std::hash specialization for tr_socket_address a struct (#6788) To be in line with std::hash declaration See https://en.cppreference.com/w/cpp/utility/hash Signed-off-by: Dzmitry Neviadomski --- libtransmission/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/net.h b/libtransmission/net.h index 1499a7868..2bc4aa71a 100644 --- a/libtransmission/net.h +++ b/libtransmission/net.h @@ -404,7 +404,7 @@ struct tr_socket_address }; template<> -class std::hash +struct std::hash { public: std::size_t operator()(tr_socket_address const& socket_address) const noexcept