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