Skip to content

Commit

Permalink
Add missing noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashuebner committed Oct 27, 2023
1 parent d1fcec8 commit 9a69061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cereal/details/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a69061

Please sign in to comment.