👌 address comment

This commit is contained in:
Niels Lohmann 2021-01-14 22:05:08 +01:00
parent a77621687a
commit 0d1fb383b7
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 6 deletions

View File

@ -167,9 +167,7 @@ struct external_constructor<value_t::array>
for (const bool x : arr)
{
j.m_value.array->push_back(x);
#if JSON_DIAGNOSTICS
j.m_value.array->back().m_parent = &j;
#endif
j.set_parent(j.m_value.array->back());
}
j.assert_invariant();
}

View File

@ -4337,9 +4337,7 @@ struct external_constructor<value_t::array>
for (const bool x : arr)
{
j.m_value.array->push_back(x);
#if JSON_DIAGNOSTICS
j.m_value.array->back().m_parent = &j;
#endif
j.set_parent(j.m_value.array->back());
}
j.assert_invariant();
}