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
c2f54dbd
Commit
c2f54dbd
authored
Oct 11, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build in C++17 mode
parent
6ebea452
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
20 deletions
+19
-20
libcaf_core/test/optional.cpp
libcaf_core/test/optional.cpp
+0
-1
libcaf_core/test/typed_spawn.cpp
libcaf_core/test/typed_spawn.cpp
+4
-3
libcaf_io/test/io/basp_broker.cpp
libcaf_io/test/io/basp_broker.cpp
+15
-16
No files found.
libcaf_core/test/optional.cpp
View file @
c2f54dbd
...
...
@@ -23,7 +23,6 @@
#include "caf/optional.hpp"
using
namespace
std
;
using
namespace
caf
;
namespace
{
...
...
libcaf_core/test/typed_spawn.cpp
View file @
c2f54dbd
...
...
@@ -31,7 +31,8 @@
#define ERROR_HANDLER \
[&](error& err) { CAF_FAIL(system.render(err)); }
using
namespace
std
;
using
std
::
string
;
using
namespace
caf
;
using
passed_atom
=
caf
::
atom_constant
<
caf
::
atom
(
"passed"
)
>
;
...
...
@@ -423,7 +424,7 @@ CAF_TEST(event_testee_series) {
[
&
](
const
string
&
str
)
{
result
=
str
;
},
after
(
chrono
::
minutes
(
1
))
>>
[
&
]
{
after
(
std
::
chrono
::
minutes
(
1
))
>>
[
&
]
{
CAF_FAIL
(
"event_testee does not reply"
);
}
);
...
...
@@ -435,7 +436,7 @@ CAF_TEST(string_delegator_chain) {
auto
aut
=
self
->
spawn
<
monitored
>
(
string_delegator
,
system
.
spawn
(
string_reverter
),
true
);
set
<
string
>
iface
{
"caf::replies_to<@str>::with<@str>"
};
s
td
::
s
et
<
string
>
iface
{
"caf::replies_to<@str>::with<@str>"
};
CAF_CHECK_EQUAL
(
aut
->
message_types
(),
iface
);
self
->
request
(
aut
,
infinite
,
"Hello World!"
).
receive
(
[](
const
string
&
answer
)
{
...
...
libcaf_io/test/io/basp_broker.cpp
View file @
c2f54dbd
...
...
@@ -33,6 +33,14 @@
#include "caf/all.hpp"
#include "caf/io/all.hpp"
#include "caf/deep_to_string.hpp"
#include "caf/io/network/interfaces.hpp"
#include "caf/io/network/test_multiplexer.hpp"
using
namespace
caf
;
using
namespace
caf
::
io
;
namespace
{
using
caf
::
make_message_id
;
...
...
@@ -72,14 +80,6 @@ constexpr auto basp_atom = caf::atom("BASP");
constexpr
auto
spawn_serv_atom
=
caf
::
atom
(
"SpawnServ"
);
constexpr
auto
config_serv_atom
=
caf
::
atom
(
"ConfigServ"
);
}
// namespace
using
namespace
std
;
using
namespace
caf
;
using
namespace
caf
::
io
;
namespace
{
constexpr
uint32_t
num_remote_nodes
=
2
;
using
buffer
=
std
::
vector
<
char
>
;
...
...
@@ -259,10 +259,9 @@ public:
return
{
hdr
,
std
::
move
(
payload
)};
}
void
connect_node
(
node
&
n
,
optional
<
accept_handle
>
ax
=
none
,
void
connect_node
(
node
&
n
,
optional
<
accept_handle
>
ax
=
none
,
actor_id
published_actor_id
=
invalid_actor_id
,
const
set
<
string
>&
published_actor_ifs
=
std
::
set
<
std
::
string
>
{})
{
const
std
::
set
<
std
::
string
>&
published_actor_ifs
=
{})
{
auto
src
=
ax
?
*
ax
:
ahdl_
;
CAF_MESSAGE
(
"connect remote node "
<<
n
.
name
<<
", connection ID = "
<<
n
.
connection
.
id
()
...
...
@@ -412,8 +411,8 @@ private:
accept_handle
ahdl_
;
network
::
test_multiplexer
*
mpx_
;
node_id
this_node_
;
unique_ptr
<
scoped_actor
>
self_
;
array
<
node
,
num_remote_nodes
>
nodes_
;
std
::
unique_ptr
<
scoped_actor
>
self_
;
std
::
array
<
node
,
num_remote_nodes
>
nodes_
;
/*
array<node_id, num_remote_nodes> remote_node_;
array<connection_handle, num_remote_nodes> remote_hdl_;
...
...
@@ -493,7 +492,7 @@ CAF_TEST(non_empty_server_handshake) {
buffer
expected_payload
;
binary_serializer
bd
{
nullptr
,
expected_payload
};
bd
(
instance
().
this_node
(),
defaults
::
middleman
::
app_identifiers
,
self
()
->
id
(),
s
et
<
string
>
{
"caf::replies_to<@u16>::with<@u16>"
});
s
td
::
set
<
std
::
string
>
{
"caf::replies_to<@u16>::with<@u16>"
});
CAF_CHECK_EQUAL
(
hexstr
(
payload
),
hexstr
(
expected_payload
));
}
...
...
@@ -633,7 +632,7 @@ CAF_TEST(remote_actor_and_send) {
{
basp
::
message_type
::
direct_message
,
0
,
0
,
0
,
jupiter
().
dummy_actor
->
id
(),
self
()
->
id
()},
std
::
vector
<
strong_actor_ptr
>
{},
make_message
(
"hi there!"
));
self
()
->
receive
([
&
](
const
string
&
str
)
{
self
()
->
receive
([
&
](
const
st
d
::
st
ring
&
str
)
{
CAF_CHECK_EQUAL
(
to_string
(
self
()
->
current_sender
()),
to_string
(
result
));
CAF_CHECK_EQUAL
(
self
()
->
current_sender
(),
result
.
address
());
CAF_CHECK_EQUAL
(
str
,
"hi there!"
);
...
...
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