From 09fe937bc3f24b74a990887f70031464feaca682 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 24 Aug 2019 02:45:40 -0400 Subject: [PATCH] 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. --- hecl/include/hecl/hecl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index 98bed126a..94a70addf 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -1290,7 +1290,7 @@ constexpr double SBig(double val) noexcept { return val; } #endif template -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); }