2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-01 10:53:37 +00:00

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:
Lioncash 2019-08-24 02:45:40 -04:00
parent f957dd594b
commit 09fe937bc3

View File

@ -1290,7 +1290,7 @@ constexpr double SBig(double val) noexcept { return val; }
#endif
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);
}