Skip to content

Commit

Permalink
Merge pull request #8841 from Techjar/remove-result-of
Browse files Browse the repository at this point in the history
Replace usage of std::result_of with std::invoke_result
  • Loading branch information
lioncash committed Jun 1, 2020
2 parents 4fc8674 + 209308a commit 84d67b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/QtUtils/RunOnObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class QObject;
template <typename F>
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,
// which means waiting for it to finish will never complete. Instead, run it immediately.
Expand Down

0 comments on commit 84d67b3

Please sign in to comment.