1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

Set parents after insert call (#4537)

* 🐛 set parents after insert call

* 🚨 fix warning
This commit is contained in:
Niels Lohmann
2024-12-18 09:44:09 +01:00
committed by GitHub
parent 30cd44df95
commit 094bd2651b
3 changed files with 22 additions and 0 deletions

View File

@ -22982,6 +22982,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
}
m_data.m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator);
set_parents();
}
/// @brief updates a JSON object from another object, overwriting existing keys