1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Make nohash operator() const.

This commit is contained in:
Bartosz Taudul 2019-01-20 18:41:26 +01:00
parent bf7cc0a0d5
commit b9dc9f043c

View File

@ -31,7 +31,7 @@ struct power_of_two_hash_policy;
template<typename T> template<typename T>
struct nohash 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; typedef tracy::power_of_two_hash_policy hash_policy;
}; };