Commit 27d5075f authored by Joseph Noir's avatar Joseph Noir

adapt to changed actor interface

parent 2453725c
...@@ -82,7 +82,7 @@ class actor_facade<Ret(Args...)> : public cppa::detail::scheduled_actor_dummy { ...@@ -82,7 +82,7 @@ class actor_facade<Ret(Args...)> : public cppa::detail::scheduled_actor_dummy {
} }
} }
void enqueue(actor* sender, any_tuple msg) { void enqueue(const actor_ptr& sender, any_tuple msg) {
typename util::il_indices<util::type_list<Args...>>::type indices; typename util::il_indices<util::type_list<Args...>>::type indices;
enqueue_impl(sender, msg, indices); enqueue_impl(sender, msg, indices);
} }
...@@ -90,7 +90,7 @@ class actor_facade<Ret(Args...)> : public cppa::detail::scheduled_actor_dummy { ...@@ -90,7 +90,7 @@ class actor_facade<Ret(Args...)> : public cppa::detail::scheduled_actor_dummy {
private: private:
template<long... Is> template<long... Is>
void enqueue_impl(actor* sender, any_tuple msg, util::int_list<Is...>) { void enqueue_impl(const actor_ptr& sender, any_tuple msg, util::int_list<Is...>) {
auto opt = tuple_cast<Args...>(msg); auto opt = tuple_cast<Args...>(msg);
if (opt) { if (opt) {
response_handle handle{this, sender, message_id_t{}}; response_handle handle{this, sender, message_id_t{}};
......
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