Commit b27339c1 authored by Marian Triebe's avatar Marian Triebe

Fix build with MSVC 2017

parent af6ef2a0
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
typename res_t::type typename res_t::type
>::valid, >::valid,
"this actor does not accept the response message"); "this actor does not accept the response message");
if (dest != nullptr) if (dest)
dest->eq_impl(make_message_id(P), dptr()->ctrl(), dest->eq_impl(make_message_id(P), dptr()->ctrl(),
dptr()->context(), std::forward<Ts>(xs)...); dptr()->context(), std::forward<Ts>(xs)...);
} }
...@@ -94,7 +94,7 @@ public: ...@@ -94,7 +94,7 @@ public:
"statically typed actors can only send() to other " "statically typed actors can only send() to other "
"statically typed actors; use anon_send() or request() when " "statically typed actors; use anon_send() or request() when "
"communicating with dynamically typed actors"); "communicating with dynamically typed actors");
if (dest != nullptr) if (dest)
dest->get()->eq_impl(make_message_id(P), dptr()->ctrl(), dest->get()->eq_impl(make_message_id(P), dptr()->ctrl(),
dptr()->context(), std::forward<Ts>(xs)...); dptr()->context(), std::forward<Ts>(xs)...);
} }
......
...@@ -102,7 +102,7 @@ void anon_send(const Dest& dest, Ts&&... xs) { ...@@ -102,7 +102,7 @@ void anon_send(const Dest& dest, Ts&&... xs) {
using token = detail::type_list<detail::strip_and_convert_t<Ts>...>; using token = detail::type_list<detail::strip_and_convert_t<Ts>...>;
static_assert(response_type_unbox<signatures_of_t<Dest>, token>::valid, static_assert(response_type_unbox<signatures_of_t<Dest>, token>::valid,
"receiver does not accept given message"); "receiver does not accept given message");
if (dest != nullptr) if (dest)
dest->eq_impl(make_message_id(P), nullptr, nullptr, dest->eq_impl(make_message_id(P), nullptr, nullptr,
std::forward<Ts>(xs)...); std::forward<Ts>(xs)...);
} }
...@@ -111,7 +111,7 @@ void anon_send(const Dest& dest, Ts&&... xs) { ...@@ -111,7 +111,7 @@ void anon_send(const Dest& dest, Ts&&... xs) {
template <message_priority P = message_priority::normal, class... Ts> template <message_priority P = message_priority::normal, class... Ts>
void anon_send(const strong_actor_ptr& dest, Ts&&... xs) { void anon_send(const strong_actor_ptr& dest, Ts&&... xs) {
static_assert(sizeof...(Ts) > 0, "no message to send"); static_assert(sizeof...(Ts) > 0, "no message to send");
if (dest != nullptr) if (dest)
dest->get()->eq_impl(make_message_id(P), nullptr, nullptr, dest->get()->eq_impl(make_message_id(P), nullptr, nullptr,
std::forward<Ts>(xs)...); std::forward<Ts>(xs)...);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment