Skip to content

Commit

Permalink
Merge Fix broken run dispatch for smart pointers
Browse files Browse the repository at this point in the history
This merge fixes the broken `run` dispatch for smart pointers.
  • Loading branch information
MarcelKoch authored Jan 12, 2024
2 parents 56f32b2 + 1e678f1 commit 9baa780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/base/dispatch_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Func(std::unique_ptr<Base<K>>, Args...)>;
using ReturnType =
std::result_of_t<Func(std::unique_ptr<Base<K>>, Args...)>;
#else
using ReturnType =
std::invoke_result_t<Func, std::unique_ptr<Base<K>>, Args...>;
Expand Down

0 comments on commit 9baa780

Please sign in to comment.