mirror of https://github.com/AxioDL/zeus.git
Global: Mark hash_combine_impl() as noexcept
This is used with hashes that are declared noexcept, so this should also be noexcept.
This commit is contained in:
parent
2206497e35
commit
3d14be889c
|
@ -16,8 +16,8 @@ using simd_doubles = athena::simd_doubles;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <typename SizeT>
|
template <typename SizeT>
|
||||||
constexpr void hash_combine_impl(SizeT& seed, SizeT value) {
|
constexpr void hash_combine_impl(SizeT& seed, SizeT value) noexcept {
|
||||||
seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2);
|
seed ^= value + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
||||||
}
|
}
|
||||||
} // namespace zeus
|
} // namespace zeus
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue