diff --git a/core/base/dispatch_helper.hpp b/core/base/dispatch_helper.hpp index 62eccfde0c6..5267617fa85 100644 --- a/core/base/dispatch_helper.hpp +++ b/core/base/dispatch_helper.hpp @@ -162,7 +162,8 @@ auto run(T obj, Func&& f, Args&&... args) // smart pointer. unique_ptr is used because it can be converted into a // shared_ptr, but not the other way around. #if __cplusplus < 201703L - using ReturnType = std::result_of>, Args...)>; + using ReturnType = + std::result_of_t>, Args...)>; #else using ReturnType = std::invoke_result_t>, Args...>;