Use std::invoke_result_t

Also simplify idm code
This commit is contained in:
Nekotekina 2018-09-05 15:10:37 +03:00
parent d750e955c3
commit 99ffc3fca9
3 changed files with 49 additions and 87 deletions

View file

@ -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)