Set parents after insert call (#4537)

* 🐛 set parents after insert call

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

No files matched your search

+1
View File
@@ -3402,6 +3402,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