diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-10-19 15:51:58 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-10-22 21:45:50 +0200 |
commit | f0cfaad02ae2a4e10e1fc772c8c1b608be188cc5 (patch) | |
tree | 747d6fdd27550bf058dba6445794a7513761b6ad /src/mbgl/util/hash.hpp | |
parent | f359d626a816825bc2224c3b4aa7428c6303d65b (diff) | |
download | qtlocation-mapboxgl-f0cfaad02ae2a4e10e1fc772c8c1b608be188cc5.tar.gz |
[core] address nitsupstream/no-locale
Diffstat (limited to 'src/mbgl/util/hash.hpp')
-rw-r--r-- | src/mbgl/util/hash.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/hash.hpp b/src/mbgl/util/hash.hpp index 987a8bd8dc..89aba00f72 100644 --- a/src/mbgl/util/hash.hpp +++ b/src/mbgl/util/hash.hpp @@ -8,12 +8,12 @@ namespace mbgl { namespace util { template <class T> -inline void hash_combine(std::size_t& seed, const T& v) { +void hash_combine(std::size_t& seed, const T& v) { seed ^= std::hash<T>()(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); } template <class... Args> -inline std::size_t hash(Args&&... args) { +std::size_t hash(Args&&... args) { std::size_t seed = 0; ignore({ (hash_combine(seed, args), 0)... }); return seed; |