Commit 35819b9f authored by Dominik Charousset's avatar Dominik Charousset Committed by Dominik Charousset

Fix build on Clang 10

parent 1c0b810e
...@@ -339,7 +339,7 @@ public: ...@@ -339,7 +339,7 @@ public:
} }
expect_clause& to(const caf::scoped_actor& whom) { expect_clause& to(const caf::scoped_actor& whom) {
dest_ = whom.ptr(); dest_ = caf::actor_cast<caf::abstract_actor*>(whom);
return *this; return *this;
} }
...@@ -415,7 +415,7 @@ public: ...@@ -415,7 +415,7 @@ public:
} }
expect_clause& to(const caf::scoped_actor& whom) { expect_clause& to(const caf::scoped_actor& whom) {
dest_ = whom.ptr(); dest_ = caf::actor_cast<caf::abstract_actor*>(whom);
return *this; return *this;
} }
...@@ -455,11 +455,6 @@ public: ...@@ -455,11 +455,6 @@ public:
return *this; return *this;
} }
inject_clause& to(const caf::scoped_actor& whom) {
dest_ = caf::actor_cast<caf::strong_actor_ptr>(whom.ptr());
return *this;
}
void with(Ts... xs) { void with(Ts... xs) {
if (dest_ == nullptr) if (dest_ == nullptr)
CAF_FAIL("missing .to() in inject() statement"); CAF_FAIL("missing .to() in inject() statement");
...@@ -534,11 +529,6 @@ public: ...@@ -534,11 +529,6 @@ public:
return *this; return *this;
} }
allow_clause& to(const caf::scoped_actor& whom) {
dest_ = whom.ptr();
return *this;
}
template <class... Us> template <class... Us>
void with(Us&&... xs) { void with(Us&&... xs) {
// TODO: replace this workaround with make_tuple() when dropping support // TODO: replace this workaround with make_tuple() when dropping support
......
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