Avoid saving each item twice
This commit is contained in:
parent
11c969511c
commit
984b603c33
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue