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
This commit is contained in:
Klemens Nanni 2022-12-08 07:13:07 +04:00 committed by John Preston
parent cad87f6818
commit 9c27271571
1 changed files with 4 additions and 3 deletions

View File

@ -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 {