From 2b383a42369ee9bc28faf987fabddd96aa573c00 Mon Sep 17 00:00:00 2001 From: Andrew Krasavin Date: Tue, 26 Apr 2022 08:45:34 +0300 Subject: [PATCH] Explicitly specify QVector element type to fix build with clang13+rangev3+qt6 More info: https://github.com/telegramdesktop/tdesktop/issues/24385 https://github.com/telegramdesktop/tdesktop/issues/24014 https://github.com/ericniebler/range-v3/issues/1691 --- Telegram/SourceFiles/api/api_media.cpp | 4 ++-- Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/api/api_media.cpp b/Telegram/SourceFiles/api/api_media.cpp index 6038060f7bdf..e1aeef3bebe9 100644 --- a/Telegram/SourceFiles/api/api_media.cpp +++ b/Telegram/SourceFiles/api/api_media.cpp @@ -83,7 +83,7 @@ MTPInputMedia PrepareUploadedPhoto(RemoteFileInfo info) { MTP_flags(flags), info.file, MTP_vector( - ranges::to(info.attachedStickers)), + ranges::to>(info.attachedStickers)), MTP_int(0)); } @@ -107,7 +107,7 @@ MTPInputMedia PrepareUploadedDocument( MTP_string(document->mimeString()), ComposeSendingDocumentAttributes(document), MTP_vector( - ranges::to(info.attachedStickers)), + ranges::to>(info.attachedStickers)), MTP_int(0)); } diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp index 890ae8b67b15..769874301d04 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp @@ -148,7 +148,7 @@ void SaveAllowedReactions( const std::vector &allowed) { auto ids = allowed | ranges::views::transform([=](QString value) { return MTP_string(value); - }) | ranges::to; + }) | ranges::to>; peer->session().api().request(MTPmessages_SetChatAvailableReactions( peer->input,