mirror of
https://github.com/nlohmann/json.git
synced 2026-09-27 10:10:29 +00:00
clang-tidy reported the json_value unions declared in the string, array, and object constructors of to_json.hpp as uninitialized (cppcoreguidelines-pro-type-member-init). Assign the created pointer to the member directly once the old value is destroyed. Signed-off-by: Niels Lohmann <mail@nlohmann.me>