diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 3f3645524..05406ba46 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -627,7 +627,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack - std::vector stack; + std::vector stack; // move the top-level items to stack if (t == value_t::array) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index b5e7417e6..cb2ca3d18 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -27749,7 +27749,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack - std::vector stack; + std::vector stack; // move the top-level items to stack if (t == value_t::array)