Commit 996a1386 authored by Joseph Noir's avatar Joseph Noir

removed unecessary parameter

parent ef057809
...@@ -161,8 +161,7 @@ class actor_facade<Ret(Args...)> : public actor { ...@@ -161,8 +161,7 @@ class actor_facade<Ret(Args...)> : public actor {
get_ref<Is>(*opt)...); get_ref<Is>(*opt)...);
auto cmd = make_counted<command<actor_facade, Ret>>(handle, auto cmd = make_counted<command<actor_facade, Ret>>(handle,
this, this,
std::move(arguments), std::move(arguments));
m_queue);
cmd->enqueue(); cmd->enqueue();
} }
else { CPPA_LOGMF(CPPA_ERROR, this, "actor_facade::enqueue() tuple_cast failed."); } else { CPPA_LOGMF(CPPA_ERROR, this, "actor_facade::enqueue() tuple_cast failed."); }
......
...@@ -53,14 +53,13 @@ class command : public ref_counted { ...@@ -53,14 +53,13 @@ class command : public ref_counted {
command(response_handle handle, command(response_handle handle,
intrusive_ptr<T> actor_facade, intrusive_ptr<T> actor_facade,
std::vector<mem_ptr> arguments, std::vector<mem_ptr> arguments)
command_queue_ptr queue)
: m_number_of_values(std::accumulate(actor_facade->m_global_dimensions.begin(), : m_number_of_values(std::accumulate(actor_facade->m_global_dimensions.begin(),
actor_facade->m_global_dimensions.end(), actor_facade->m_global_dimensions.end(),
1, std::multiplies<size_t>{})) 1, std::multiplies<size_t>{}))
, m_handle(handle) , m_handle(handle)
, m_actor_facade(actor_facade) , m_actor_facade(actor_facade)
, m_queue(queue) , m_queue(actor_facade->m_queue)
, m_arguments(move(arguments)) { } , m_arguments(move(arguments)) { }
void enqueue () { void enqueue () {
......
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