Use std::invoke_result_t
Also simplify idm code
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user