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
b0c1c786
Commit
b0c1c786
authored
Feb 17, 2016
by
ufownl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation error on GCC4.8
parent
f64f1ea2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
7 deletions
+25
-7
libcaf_core/test/serial_reply.cpp
libcaf_core/test/serial_reply.cpp
+5
-5
libcaf_core/test/typed_spawn.cpp
libcaf_core/test/typed_spawn.cpp
+20
-2
No files found.
libcaf_core/test/serial_reply.cpp
View file @
b0c1c786
...
...
@@ -56,20 +56,20 @@ CAF_TEST(test_serial_reply) {
auto
c3
=
self
->
spawn
<
linked
>
(
mirror_behavior
);
auto
c4
=
self
->
spawn
<
linked
>
(
mirror_behavior
);
self
->
become
(
[
=
](
hi_atom
)
{
[
=
](
hi_atom
)
mutable
{
auto
rp
=
self
->
make_response_promise
();
CAF_MESSAGE
(
"received 'hi there'"
);
self
->
request
(
c0
,
sub0_atom
::
value
).
then
(
[
=
](
sub0_atom
)
{
[
=
](
sub0_atom
)
mutable
{
CAF_MESSAGE
(
"received 'sub0'"
);
self
->
request
(
c1
,
sub1_atom
::
value
).
then
(
[
=
](
sub1_atom
)
{
[
=
](
sub1_atom
)
mutable
{
CAF_MESSAGE
(
"received 'sub1'"
);
self
->
request
(
c2
,
sub2_atom
::
value
).
then
(
[
=
](
sub2_atom
)
{
[
=
](
sub2_atom
)
mutable
{
CAF_MESSAGE
(
"received 'sub2'"
);
self
->
request
(
c3
,
sub3_atom
::
value
).
then
(
[
=
](
sub3_atom
)
{
[
=
](
sub3_atom
)
mutable
{
CAF_MESSAGE
(
"received 'sub3'"
);
self
->
request
(
c4
,
sub4_atom
::
value
).
then
(
[
=
](
sub4_atom
)
mutable
{
...
...
libcaf_core/test/typed_spawn.cpp
View file @
b0c1c786
...
...
@@ -149,6 +149,23 @@ public:
virtual
mpi_output_t
<
Ys
...
>
operator
()(
mpi_input_t
<
Xs
>
...)
=
0
;
};
template
<
class
...
Ts
>
struct
abstract_composable_state_mixin_helper
;
template
<
class
T
,
class
...
Ts
>
struct
abstract_composable_state_mixin_helper
<
T
,
Ts
...
>
:
public
abstract_composable_state_mixin
<
T
>
,
public
abstract_composable_state_mixin_helper
<
Ts
...
>
{
using
abstract_composable_state_mixin
<
T
>::
operator
();
using
abstract_composable_state_mixin_helper
<
Ts
...
>::
operator
();
};
template
<
class
T
>
struct
abstract_composable_state_mixin_helper
<
T
>
:
public
abstract_composable_state_mixin
<
T
>
{
using
abstract_composable_state_mixin
<
T
>::
operator
();
};
/// Marker type that allows CAF to spawn actors from composable states.
class
abstract_composable_state
{
public:
...
...
@@ -188,8 +205,9 @@ template <class TypedActor>
class
composable_state
;
template
<
class
...
Clauses
>
class
composable_state
<
typed_actor
<
Clauses
...
>>
:
virtual
public
abstract_composable_state
,
public
abstract_composable_state_mixin
<
Clauses
>
...
{
class
composable_state
<
typed_actor
<
Clauses
...
>>
:
virtual
public
abstract_composable_state
,
public
abstract_composable_state_mixin_helper
<
Clauses
...
>
{
public:
using
signatures
=
detail
::
type_list
<
Clauses
...
>
;
...
...
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