From 3e4723a49fbfc502e4790d8a87021f57bb4cf999 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 15 Jul 2021 21:49:09 +0200 Subject: [PATCH] :hammer: remove noexcept annotation --- include/nlohmann/json.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {