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
5622c8c9
Commit
5622c8c9
authored
Nov 23, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const overload for stream_manager::out
parent
803ba536
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
libcaf_core/caf/stream_manager.hpp
libcaf_core/caf/stream_manager.hpp
+3
-0
libcaf_core/src/stream_manager.cpp
libcaf_core/src/stream_manager.cpp
+5
-0
No files found.
libcaf_core/caf/stream_manager.hpp
View file @
5622c8c9
...
...
@@ -111,6 +111,9 @@ public:
/// Returns the manager for downstream communication.
virtual
downstream_manager
&
out
()
=
0
;
/// Returns the manager for downstream communication.
const
downstream_manager
&
out
()
const
;
/// Returns whether the manager has reached the end and can be discarded
/// safely.
virtual
bool
done
()
const
=
0
;
...
...
libcaf_core/src/stream_manager.cpp
View file @
5622c8c9
...
...
@@ -194,6 +194,11 @@ bool stream_manager::generate_messages() {
return
false
;
}
const
downstream_manager
&
stream_manager
::
out
()
const
{
// We restore the const when returning from this member function.
return
const_cast
<
stream_manager
*>
(
this
)
->
out
();
}
void
stream_manager
::
cycle_timeout
(
size_t
)
{
// TODO: make pure virtual
}
...
...
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