Merge pull request #686 from WebProdPP/patch-1

Update json.hpp
This commit is contained in:
Niels Lohmann 2017-08-10 06:44:59 +02:00 committed by GitHub
commit d26b3f1fe5

View file

@ -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"));
}