mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 Window::Notifications::Manager;
|
||||||
using NotificationId = Manager::NotificationId;
|
using NotificationId = Manager::NotificationId;
|
||||||
using NotificationIdTuple = std::result_of<
|
using NotificationIdTuple = std::invoke_result_t<
|
||||||
decltype(&NotificationId::toTuple)(NotificationId*)
|
decltype(&NotificationId::toTuple),
|
||||||
>::type;
|
NotificationId*
|
||||||
|
>;
|
||||||
|
|
||||||
const auto notificationIdVariantType = [] {
|
const auto notificationIdVariantType = [] {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue