mirror of
https://github.com/fraillt/bitsery.git
synced 2026-06-08 00:03:54 +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>());
|
||||
}
|
||||
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