Commit 618fe2f4 authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

GenericValue::MemberErase: drop explicit iterator conversions

parent ca5000ba
......@@ -1012,9 +1012,9 @@ public:
RAPIDJSON_ASSERT(last <= MemberEnd());
MemberIterator pos = MemberBegin() + (first - MemberBegin());
for (MemberIterator itr = pos; ConstMemberIterator(itr) != last; ++itr)
for (MemberIterator itr = pos; itr != last; ++itr)
itr->~Member();
memmove(&*pos, &*last, (ConstMemberIterator(MemberEnd()) - last) * sizeof(Member));
memmove(&*pos, &*last, (MemberEnd() - last) * sizeof(Member));
data_.o.size -= (last - first);
return pos;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment