1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

💚 fix build

This commit is contained in:
Niels Lohmann
2021-01-15 16:58:05 +01:00
parent b0d8628c49
commit 7633a21e6c
2 changed files with 4 additions and 0 deletions

View File

@ -3609,8 +3609,10 @@ class basic_json
#endif
m_value.array->resize(idx + 1);
#if JSON_DIAGNOSTICS
// set parent for values added above
set_parents(begin() + previous_size, idx + 1 - previous_size);
#endif
}
return m_value.array->operator[](idx);