mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Merge pull request #8841 from Techjar/remove-result-of
Replace usage of std::result_of with std::invoke_result
This commit is contained in:
@ -26,7 +26,7 @@ class QObject;
|
|||||||
template <typename F>
|
template <typename F>
|
||||||
auto RunOnObject(QObject* object, F&& functor)
|
auto RunOnObject(QObject* object, F&& functor)
|
||||||
{
|
{
|
||||||
using OptionalResultT = std::optional<std::result_of_t<F()>>;
|
using OptionalResultT = std::optional<std::invoke_result_t<F>>;
|
||||||
|
|
||||||
// If we queue up a functor on the current thread, it won't run until we return to the event loop,
|
// If we queue up a functor on the current thread, it won't run until we return to the event loop,
|
||||||
// which means waiting for it to finish will never complete. Instead, run it immediately.
|
// which means waiting for it to finish will never complete. Instead, run it immediately.
|
||||||
|
Reference in New Issue
Block a user