Avoid saving each item twice

This commit is contained in:
Andrew Noyes 2019-07-12 11:20:01 -07:00
parent 11c969511c
commit 984b603c33
1 changed files with 0 additions and 1 deletions

View File

@ -1109,7 +1109,6 @@ struct dynamic_size_traits<VectorRef<V, true>> : std::true_type {
memcpy(out, &length, sizeof(length));
out += sizeof(length);
for (const auto& item : t) {
traits.save(out, item);
out += traits.save(out, item);
}
ASSERT(out - p == t._cached_size + sizeof(uint32_t));