Commit 7a1bc768 authored by Dominik Charousset's avatar Dominik Charousset

Fix operator== for actor

parent bcacc6d8
...@@ -109,7 +109,7 @@ actor actor::splice_impl(std::initializer_list<actor> xs) { ...@@ -109,7 +109,7 @@ actor actor::splice_impl(std::initializer_list<actor> xs) {
} }
bool operator==(const actor& lhs, abstract_actor* rhs) { bool operator==(const actor& lhs, abstract_actor* rhs) {
return actor_cast<abstract_actor*>(lhs) == rhs; return lhs ? actor_cast<abstract_actor*>(lhs) == rhs : rhs == nullptr;
} }
bool operator==(abstract_actor* lhs, const actor& rhs) { bool operator==(abstract_actor* lhs, const actor& rhs) {
......
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