Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
5c92b806
Commit
5c92b806
authored
Apr 10, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added const to local_actor::joined_groups
parent
f1722faa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cppa/local_actor.hpp
cppa/local_actor.hpp
+1
-1
src/local_actor.cpp
src/local_actor.cpp
+2
-2
No files found.
cppa/local_actor.hpp
View file @
5c92b806
...
...
@@ -189,7 +189,7 @@ class local_actor : public extend<actor>::with<memory_cached> {
/**
* @brief Returns all joined groups of this actor.
*/
std
::
vector
<
group_ptr
>
joined_groups
();
std
::
vector
<
group_ptr
>
joined_groups
()
const
;
/**
* @ingroup BlockingAPI
...
...
src/local_actor.cpp
View file @
5c92b806
...
...
@@ -98,7 +98,7 @@ void local_actor::leave(const group_ptr& 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
;
for
(
auto
&
kvp
:
m_subscriptions
)
{
result
.
emplace_back
(
kvp
.
first
);
...
...
@@ -146,7 +146,7 @@ void local_actor::forward_message(const actor_ptr& new_receiver) {
response_handle
local_actor
::
make_response_handle
()
{
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
();
return
std
::
move
(
result
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment