mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Use std::invoke_result_t
Also simplify idm code
This commit is contained in:
parent
d750e955c3
commit
99ffc3fca9
3 changed files with 49 additions and 87 deletions
|
@ -209,7 +209,7 @@ public:
|
|||
}
|
||||
|
||||
// Wait until pred(). Abortable, may throw.
|
||||
template<typename F, typename RT = std::result_of_t<F()>>
|
||||
template<typename F, typename RT = std::invoke_result_t<F>>
|
||||
static inline RT wait(F&& pred)
|
||||
{
|
||||
while (true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue