diff --git a/include/nlohmann/detail/hash.hpp b/include/nlohmann/detail/hash.hpp index 0b3d1e2a5..49177366e 100644 --- a/include/nlohmann/detail/hash.hpp +++ b/include/nlohmann/detail/hash.hpp @@ -161,7 +161,7 @@ std::size_t hash(const BasicJsonType& j, const std::size_t depth = 0) template struct hash_frame { - hash_frame(const BasicJsonType* value_, std::size_t seed_) + hash_frame(const BasicJsonType* value_, std::size_t seed_) noexcept : value(value_), position(value_->cbegin()), seed(seed_) {} diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 5813dc189..3745c365a 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -7136,7 +7136,7 @@ std::size_t hash(const BasicJsonType& j, const std::size_t depth = 0) template struct hash_frame { - hash_frame(const BasicJsonType* value_, std::size_t seed_) + hash_frame(const BasicJsonType* value_, std::size_t seed_) noexcept : value(value_), position(value_->cbegin()), seed(seed_) {}