💚 fix build

pull/2562/head
Niels Lohmann 2021-01-15 16:58:05 +01:00
parent b0d8628c49
commit 7633a21e6c
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
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);

View File

@ -20364,8 +20364,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);