From b9dc9f043c7c3abf166701f59c72d4cb74041f1b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Jan 2019 18:41:26 +0100 Subject: [PATCH] Make nohash operator() const. --- server/tracy_flat_hash_map.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tracy_flat_hash_map.hpp b/server/tracy_flat_hash_map.hpp index 010d5c46..69e77d20 100644 --- a/server/tracy_flat_hash_map.hpp +++ b/server/tracy_flat_hash_map.hpp @@ -31,7 +31,7 @@ struct power_of_two_hash_policy; template struct nohash { - size_t operator()( const T& v ) { return (size_t)v; } + size_t operator()( const T& v ) const { return (size_t)v; } typedef tracy::power_of_two_hash_policy hash_policy; };