mirror of
https://github.com/nlohmann/json.git
synced 2025-01-22 01:53:33 +08:00
commit
d26b3f1fe5
@ -12058,7 +12058,7 @@ class basic_json
|
||||
|
||||
// passed iterators must belong to objects
|
||||
if (JSON_UNLIKELY(not first.m_object->is_object()
|
||||
or not first.m_object->is_object()))
|
||||
or not last.m_object->is_object()))
|
||||
{
|
||||
JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user