Commit 5c92b806 authored by Dominik Charousset's avatar Dominik Charousset

added const to local_actor::joined_groups

parent f1722faa
...@@ -189,7 +189,7 @@ class local_actor : public extend<actor>::with<memory_cached> { ...@@ -189,7 +189,7 @@ class local_actor : public extend<actor>::with<memory_cached> {
/** /**
* @brief Returns all joined groups of this actor. * @brief Returns all joined groups of this actor.
*/ */
std::vector<group_ptr> joined_groups(); std::vector<group_ptr> joined_groups() const;
/** /**
* @ingroup BlockingAPI * @ingroup BlockingAPI
......
...@@ -98,7 +98,7 @@ void local_actor::leave(const group_ptr& what) { ...@@ -98,7 +98,7 @@ void local_actor::leave(const group_ptr& what) {
if (what) m_subscriptions.erase(what); if (what) m_subscriptions.erase(what);
} }
std::vector<group_ptr> local_actor::joined_groups() { std::vector<group_ptr> local_actor::joined_groups() const {
std::vector<group_ptr> result; std::vector<group_ptr> result;
for (auto& kvp : m_subscriptions) { for (auto& kvp : m_subscriptions) {
result.emplace_back(kvp.first); result.emplace_back(kvp.first);
...@@ -146,7 +146,7 @@ void local_actor::forward_message(const actor_ptr& new_receiver) { ...@@ -146,7 +146,7 @@ void local_actor::forward_message(const actor_ptr& new_receiver) {
response_handle local_actor::make_response_handle() { response_handle local_actor::make_response_handle() {
auto n = m_current_node; auto n = m_current_node;
response_handle result(this, n->sender, n->mid.response_id()); response_handle result{this, n->sender, n->mid.response_id()};
n->mid.mark_as_answered(); n->mid.mark_as_answered();
return std::move(result); return std::move(result);
} }
......
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