diff options
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; |