mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
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:
parent
cad87f6818
commit
9c27271571
1 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue