Merge pull request #8841 from Techjar/remove-result-of
Replace usage of std::result_of with std::invoke_result
This commit is contained in:
commit
84d67b3547
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue