diff options
Diffstat (limited to 'src/openvic-simulation/utility/Utility.hpp')
-rw-r--r-- | src/openvic-simulation/utility/Utility.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/utility/Utility.hpp b/src/openvic-simulation/utility/Utility.hpp index dbbcf8f..9951532 100644 --- a/src/openvic-simulation/utility/Utility.hpp +++ b/src/openvic-simulation/utility/Utility.hpp @@ -32,13 +32,13 @@ namespace OpenVic::utility { } template<class T> - constexpr inline void hash_combine(std::size_t& s, const T& v) { + inline constexpr void hash_combine(std::size_t& s, const T& v) { std::hash<T> h; s ^= h(v) + 0x9e3779b9 + (s << 6) + (s >> 2); } template<size_t Shift, class T> - constexpr inline void hash_combine_index(std::size_t& s, const T& v) { + inline constexpr void hash_combine_index(std::size_t& s, const T& v) { std::hash<T> h; if constexpr (Shift == 0) { s = h(v); |