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
fd14095d
Commit
fd14095d
authored
Sep 28, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static assertion
parent
890918e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
libcaf_core/caf/attach_stream_stage.hpp
libcaf_core/caf/attach_stream_stage.hpp
+9
-3
No files found.
libcaf_core/caf/attach_stream_stage.hpp
View file @
fd14095d
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
#pragma once
#pragma once
#include <vector>
#include "caf/default_downstream_manager.hpp"
#include "caf/default_downstream_manager.hpp"
#include "caf/detail/stream_stage_driver_impl.hpp"
#include "caf/detail/stream_stage_driver_impl.hpp"
#include "caf/detail/stream_stage_impl.hpp"
#include "caf/detail/stream_stage_impl.hpp"
...
@@ -74,10 +76,14 @@ attach_stream_stage(scheduled_actor* self, const stream<In>& in,
...
@@ -74,10 +76,14 @@ attach_stream_stage(scheduled_actor* self, const stream<In>& in,
void
(
state_type
&
),
void
(
state_type
&
),
typename
detail
::
get_callable_trait
<
Init
>::
fun_sig
>::
value
,
typename
detail
::
get_callable_trait
<
Init
>::
fun_sig
>::
value
,
"Expected signature `void (State&)` for init function"
);
"Expected signature `void (State&)` for init function"
);
static_assert
(
std
::
is_same
<
using
consume_one
=
void
(
state_type
&
,
downstream
<
output_type
>&
,
In
);
void
(
state_type
&
,
downstream
<
output_type
>&
,
In
),
using
consume_all
=
void
(
state_type
&
,
downstream
<
output_type
>&
,
typename
detail
::
get_callable_trait
<
Fun
>::
fun_sig
>::
value
,
std
::
vector
<
In
>&
);
using
fun_sig
=
typename
detail
::
get_callable_trait
<
Fun
>::
fun_sig
;
static_assert
(
std
::
is_same
<
fun_sig
,
consume_one
>::
value
||
std
::
is_same
<
fun_sig
,
consume_all
>::
value
,
"Expected signature `void (State&, downstream<Out>&, In)` "
"Expected signature `void (State&, downstream<Out>&, In)` "
"or `void (State&, downstream<Out>&, std::vector<In>&)` "
"for consume function"
);
"for consume function"
);
using
driver
=
detail
::
stream_stage_driver_impl
<
using
driver
=
detail
::
stream_stage_driver_impl
<
typename
Trait
::
input
,
DownstreamManager
,
Fun
,
Finalize
>
;
typename
Trait
::
input
,
DownstreamManager
,
Fun
,
Finalize
>
;
...
...
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