From 9a69061264241672fe24aec294045d3a3c6455bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20H=C3=BCbner?= Date: Fri, 27 Oct 2023 12:47:58 +0200 Subject: [PATCH] Add missing noexcept --- include/cereal/details/traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cereal/details/traits.hpp b/include/cereal/details/traits.hpp index e1fda1d9..1eb77195 100644 --- a/include/cereal/details/traits.hpp +++ b/include/cereal/details/traits.hpp @@ -1158,7 +1158,7 @@ namespace cereal void const * ptr; size_t hash; }; - struct base_class_id_hash { size_t operator()(base_class_id const & id) const { return id.hash; } }; + struct base_class_id_hash { size_t operator()(base_class_id const & id) const noexcept { return id.hash; } }; } // namespace detail namespace detail