From 765a1ececfec76362d5ed222d639f4e895a7889f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 20 Mar 2018 15:40:11 +0100 Subject: [PATCH] Move nohash<> from TracyWorker to flat hash map. --- server/TracyWorker.hpp | 7 ------- server/tracy_flat_hash_map.hpp | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 4ea69f11..8f28d33e 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -24,13 +24,6 @@ namespace tracy class FileRead; class FileWrite; -template -struct nohash -{ - size_t operator()( const T& v ) { return (size_t)v; } - typedef tracy::power_of_two_hash_policy hash_policy; -}; - class Worker { #pragma pack( 1 ) diff --git a/server/tracy_flat_hash_map.hpp b/server/tracy_flat_hash_map.hpp index 84aee040..43c9cd32 100644 --- a/server/tracy_flat_hash_map.hpp +++ b/server/tracy_flat_hash_map.hpp @@ -26,6 +26,13 @@ namespace tracy struct prime_number_hash_policy; struct power_of_two_hash_policy; +template +struct nohash +{ + size_t operator()( const T& v ) { return (size_t)v; } + typedef tracy::power_of_two_hash_policy hash_policy; +}; + namespace detailv3 { template