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 8769d6e30..cd628e729 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -7180,7 +7180,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_) {}