Fix parsing of std::unordered_set.

GitOrigin-RevId: 6c946161748c71b36382c20e7bacac1299b4b9a8
This commit is contained in:
levlam 2018-11-11 16:35:51 +03:00
parent 0ca9b6493d
commit 718f9e3532
2 changed files with 2 additions and 1 deletions

View File

@ -310,6 +310,7 @@ struct PartialRemoteFileLocation {
int32 part_size_;
int32 ready_part_count_;
int32 is_big_;
template <class StorerT>
void store(StorerT &storer) const {
using td::store;

View File

@ -158,8 +158,8 @@ void parse(std::unordered_set<Key, Hash, KeyEqual, Allocator> &s, ParserT &parse
return;
}
s.clear();
Key val;
for (uint32 i = 0; i < size; i++) {
Key val;
parse(val, parser);
s.insert(std::move(val));
}