mirror of
https://github.com/nlohmann/json.git
synced 2025-08-06 18:56:31 +08:00
👌 address comment
This commit is contained in:
parent
a77621687a
commit
0d1fb383b7
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user