diff options
author | rtk0c <[email protected]> | 2022-06-28 12:17:48 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-28 12:17:48 -0700 |
commit | 6839736b8283a59eb743e1f6058c7d266a3e7f36 (patch) | |
tree | c9fafde01740753a93c3bf3830faa790b88b001c /source/10-common/Utils.hpp | |
parent | 8a244363c9171946aa6e4552ce0dcfc8edf761cb (diff) |
Changeset: 78 Replace "class" keyword in templates with "typename"
Diffstat (limited to 'source/10-common/Utils.hpp')
-rw-r--r-- | source/10-common/Utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/10-common/Utils.hpp b/source/10-common/Utils.hpp index fdf0f5d..82569d8 100644 --- a/source/10-common/Utils.hpp +++ b/source/10-common/Utils.hpp @@ -43,7 +43,7 @@ bool LineContains(glm::ivec2 p1, glm::ivec2 p2, glm::ivec2 candidate); bool IsColinear(glm::ivec2 p1, glm::ivec2 p2); -template <class T> +template <typename T> void HashCombine(std::size_t& seed, const T& v) { seed ^= std::hash<T>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); } |