From 718f9e35327296ceab0fa559c4f46519572c847d Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 11 Nov 2018 16:35:51 +0300 Subject: [PATCH] Fix parsing of std::unordered_set. GitOrigin-RevId: 6c946161748c71b36382c20e7bacac1299b4b9a8 --- td/telegram/files/FileLocation.h | 1 + tdutils/td/utils/tl_helpers.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/files/FileLocation.h b/td/telegram/files/FileLocation.h index d96b8c3f..944312da 100644 --- a/td/telegram/files/FileLocation.h +++ b/td/telegram/files/FileLocation.h @@ -310,6 +310,7 @@ struct PartialRemoteFileLocation { int32 part_size_; int32 ready_part_count_; int32 is_big_; + template void store(StorerT &storer) const { using td::store; diff --git a/tdutils/td/utils/tl_helpers.h b/tdutils/td/utils/tl_helpers.h index 2e0db461..76dd61ee 100644 --- a/tdutils/td/utils/tl_helpers.h +++ b/tdutils/td/utils/tl_helpers.h @@ -158,8 +158,8 @@ void parse(std::unordered_set &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)); }