mirror of
https://github.com/fraillt/bitsery.git
synced 2026-06-08 08:13:56 +00:00
fix non default constructible container deser
This commit is contained in:
@@ -65,7 +65,7 @@ namespace bitsery {
|
|||||||
container.push_back(::bitsery::Access::create<TValue>());
|
container.push_back(::bitsery::Access::create<TValue>());
|
||||||
}
|
}
|
||||||
if (oldSize > newSize) {
|
if (oldSize > newSize) {
|
||||||
container.erase(std::next(std::begin(container), newSize));
|
container.erase(std::next(std::begin(container), newSize), std::end(container));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user