From 424d48adf89d68667e5757c2d0cdc088eadc8724 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Thu, 8 Dec 2022 07:13:07 +0400 Subject: [PATCH] Use std::invoke_result_T not ::result_of to fix C++20 tdesktop 4.3.4 tdesktop defaults to (probably requires) C++20, but `std::result_of`[0] was deprecated in C++17 and removed in C++20. 0: https://en.cppreference.com/w/cpp/types/result_of --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index b5823c969acfc..f003ac4942cdc 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -356,9 +356,10 @@ void LaunchGApplication() { using Window::Notifications::Manager; using NotificationId = Manager::NotificationId; - using NotificationIdTuple = std::result_of< - decltype(&NotificationId::toTuple)(NotificationId*) - >::type; + using NotificationIdTuple = std::invoke_result_t< + decltype(&NotificationId::toTuple), + NotificationId* + >; const auto notificationIdVariantType = [] { try {