From 1e678f1478079c855da24b9745e16304885bcbe3 Mon Sep 17 00:00:00 2001 From: Marcel Koch Date: Thu, 11 Jan 2024 16:15:17 +0100 Subject: [PATCH] fix broken `run` dispatch for smart pointers --- core/base/dispatch_helper.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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...>;