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
2f2d6d79
Commit
2f2d6d79
authored
Mar 14, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation errors
parent
c8a35b24
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
libcaf_core/caf/broadcast_downstream_manager.hpp
libcaf_core/caf/broadcast_downstream_manager.hpp
+3
-3
libcaf_core/caf/fused_downstream_manager.hpp
libcaf_core/caf/fused_downstream_manager.hpp
+1
-1
libcaf_core/test/fused_streaming.cpp
libcaf_core/test/fused_streaming.cpp
+4
-3
No files found.
libcaf_core/caf/broadcast_downstream_manager.hpp
View file @
2f2d6d79
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
bool
all_filters
(
UnaryPredicate
predicate
)
{
bool
all_filters
(
UnaryPredicate
predicate
)
{
return
std
::
all_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
return
std
::
all_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
return
predicate
(
kvp
.
second
);
return
predicate
(
kvp
.
second
.
filter
);
});
});
}
}
...
@@ -95,7 +95,7 @@ public:
...
@@ -95,7 +95,7 @@ public:
bool
any_filter
(
UnaryPredicate
predicate
)
{
bool
any_filter
(
UnaryPredicate
predicate
)
{
return
std
::
any_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
return
std
::
any_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
return
predicate
(
kvp
.
second
);
return
predicate
(
kvp
.
second
.
filter
);
});
});
}
}
...
@@ -105,7 +105,7 @@ public:
...
@@ -105,7 +105,7 @@ public:
bool
no_filter
(
UnaryPredicate
predicate
)
{
bool
no_filter
(
UnaryPredicate
predicate
)
{
return
std
::
none_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
return
std
::
none_of
(
state_map_
.
begin
(),
state_map_
.
end
(),
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
[
&
](
const
typename
state_map_type
::
value_type
&
kvp
)
{
return
predicate
(
kvp
.
second
);
return
predicate
(
kvp
.
second
.
filter
);
});
});
}
}
...
...
libcaf_core/caf/fused_downstream_manager.hpp
View file @
2f2d6d79
...
@@ -133,7 +133,7 @@ public:
...
@@ -133,7 +133,7 @@ public:
fused_downstream_manager
(
scheduled_actor
*
self
)
fused_downstream_manager
(
scheduled_actor
*
self
)
:
super
(
self
),
:
super
(
self
),
nested_
(
self
,
detail
::
pack_repeat
<
Ts
...
>
(
self
)
)
{
nested_
(
self
,
detail
::
pack_repeat
<
Ts
>
(
self
)...
)
{
detail
::
init_ptr_array
<
0
,
sizeof
...(
Ts
)
+
1
>::
apply
(
ptrs_
,
nested_
);
detail
::
init_ptr_array
<
0
,
sizeof
...(
Ts
)
+
1
>::
apply
(
ptrs_
,
nested_
);
}
}
...
...
libcaf_core/test/fused_streaming.cpp
View file @
2f2d6d79
...
@@ -167,7 +167,8 @@ using int_downstream_manager = broadcast_downstream_manager<int>;
...
@@ -167,7 +167,8 @@ using int_downstream_manager = broadcast_downstream_manager<int>;
using
string_downstream_manager
=
broadcast_downstream_manager
<
string
>
;
using
string_downstream_manager
=
broadcast_downstream_manager
<
string
>
;
using
downstream_manager
=
fused_downstream_manager
<
int_downstream_manager
,
string_downstream_manager
>
;
using
fused_manager
=
fused_downstream_manager
<
int_downstream_manager
,
string_downstream_manager
>
;
class
fused_stage
:
public
stream_manager
{
class
fused_stage
:
public
stream_manager
{
public:
public:
...
@@ -207,12 +208,12 @@ public:
...
@@ -207,12 +208,12 @@ public:
return
out_
.
capacity
()
==
0
;
return
out_
.
capacity
()
==
0
;
}
}
downstream
_manager
&
out
()
noexcept
override
{
fused
_manager
&
out
()
noexcept
override
{
return
out_
;
return
out_
;
}
}
private:
private:
downstream
_manager
out_
;
fused
_manager
out_
;
};
};
TESTEE_STATE
(
stream_multiplexer
)
{
TESTEE_STATE
(
stream_multiplexer
)
{
...
...
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