Commit 1bacec77 authored by Dominik Charousset's avatar Dominik Charousset

Remove check that collides with stateful brokers

parent 67099ce8
......@@ -42,11 +42,6 @@ public:
template <class F, class... Ts>
actor fork(F fun, connection_handle hdl, Ts&&... xs) {
// provoke compile-time errors early
using fun_res = decltype(fun(this, hdl, std::forward<Ts>(xs)...));
// prevent warning about unused local type
static_assert(std::is_same<fun_res, fun_res>::value,
"your compiler is lying to you");
auto sptr = take(hdl);
CAF_ASSERT(sptr->hdl() == hdl);
return spawn_functor(nullptr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment