Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
2f4b8d7d
Commit
2f4b8d7d
authored
Mar 20, 2019
by
Hauke Goldhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bb::stream_reader. Tests run now
parent
54b2c98b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libcaf_bb/caf/bb/stream_reader.hpp
libcaf_bb/caf/bb/stream_reader.hpp
+1
-1
libcaf_bb/test/stream_reader.cpp
libcaf_bb/test/stream_reader.cpp
+1
-1
No files found.
libcaf_bb/caf/bb/stream_reader.hpp
View file @
2f4b8d7d
...
...
@@ -75,7 +75,7 @@ behavior stream_reader(stream_source_type<InputStream>* self,
using
value_type
=
typename
Policy
::
value_type
;
self
->
state
.
init
(
std
::
move
(
src_stream
));
// Fail early if we got nothing to stream.
if
(
!
self
->
state
.
at_end
())
if
(
self
->
state
.
at_end
())
return
{};
// Spin up stream manager and connect the first sink.
auto
src
=
self
->
make_source
(
...
...
libcaf_bb/test/stream_reader.cpp
View file @
2f4b8d7d
...
...
@@ -53,7 +53,7 @@ TESTEE(stream_reader_sink) {
},
// Consumer
[
=
](
unit_t
&
,
value_type
val
)
{
CAF_MESSAGE
(
self
->
name
()
<<
val
);
CAF_MESSAGE
(
self
->
name
()
<<
" "
<<
val
);
self
->
state
.
vec
.
emplace_back
(
std
::
move
(
val
));
},
// cleanup and produce result message
...
...
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