mirror of https://github.com/AxioDL/metaforce.git
hecl/hecl: Make hash_combine_impl noexcept
This is used to implement hashes, and since hash implementations shouldn't throw, these shouldn't as well.
This commit is contained in:
parent
f957dd594b
commit
09fe937bc3
|
@ -1290,7 +1290,7 @@ constexpr double SBig(double val) noexcept { return val; }
|
||||||
#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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue