diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 65d2201db..94c004227 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -1131,7 +1131,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec binary = create(std::move(value)); } - void destroy(value_t t) noexcept + void destroy(value_t t) { if (t == value_t::array || t == value_t::object) { diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index dedd3d4a5..8130c6aa8 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -18191,7 +18191,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec binary = create(std::move(value)); } - void destroy(value_t t) noexcept + void destroy(value_t t) { if (t == value_t::array || t == value_t::object) {