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
b27339c1
Commit
b27339c1
authored
Mar 22, 2018
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build with MSVC 2017
parent
af6ef2a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libcaf_core/caf/mixin/sender.hpp
libcaf_core/caf/mixin/sender.hpp
+2
-2
libcaf_core/caf/send.hpp
libcaf_core/caf/send.hpp
+2
-2
No files found.
libcaf_core/caf/mixin/sender.hpp
View file @
b27339c1
...
...
@@ -80,7 +80,7 @@ public:
typename
res_t
::
type
>::
valid
,
"this actor does not accept the response message"
);
if
(
dest
!=
nullptr
)
if
(
dest
)
dest
->
eq_impl
(
make_message_id
(
P
),
dptr
()
->
ctrl
(),
dptr
()
->
context
(),
std
::
forward
<
Ts
>
(
xs
)...);
}
...
...
@@ -94,7 +94,7 @@ public:
"statically typed actors can only send() to other "
"statically typed actors; use anon_send() or request() when "
"communicating with dynamically typed actors"
);
if
(
dest
!=
nullptr
)
if
(
dest
)
dest
->
get
()
->
eq_impl
(
make_message_id
(
P
),
dptr
()
->
ctrl
(),
dptr
()
->
context
(),
std
::
forward
<
Ts
>
(
xs
)...);
}
...
...
libcaf_core/caf/send.hpp
View file @
b27339c1
...
...
@@ -102,7 +102,7 @@ void anon_send(const Dest& dest, Ts&&... xs) {
using
token
=
detail
::
type_list
<
detail
::
strip_and_convert_t
<
Ts
>
...
>
;
static_assert
(
response_type_unbox
<
signatures_of_t
<
Dest
>
,
token
>::
valid
,
"receiver does not accept given message"
);
if
(
dest
!=
nullptr
)
if
(
dest
)
dest
->
eq_impl
(
make_message_id
(
P
),
nullptr
,
nullptr
,
std
::
forward
<
Ts
>
(
xs
)...);
}
...
...
@@ -111,7 +111,7 @@ void anon_send(const Dest& dest, Ts&&... xs) {
template
<
message_priority
P
=
message_priority
::
normal
,
class
...
Ts
>
void
anon_send
(
const
strong_actor_ptr
&
dest
,
Ts
&&
...
xs
)
{
static_assert
(
sizeof
...(
Ts
)
>
0
,
"no message to send"
);
if
(
dest
!=
nullptr
)
if
(
dest
)
dest
->
get
()
->
eq_impl
(
make_message_id
(
P
),
nullptr
,
nullptr
,
std
::
forward
<
Ts
>
(
xs
)...);
}
...
...
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