Commit 01f2c6d0 authored by Dominik Charousset's avatar Dominik Charousset

Add actor::id member function for convenience

parent cd92284c
......@@ -147,6 +147,8 @@ class actor : detail::comparable<actor>,
*/
actor_addr address() const;
actor_id id() const;
private:
void swap(actor& other);
......
......@@ -58,4 +58,8 @@ actor_addr actor::address() const {
return m_ptr ? m_ptr->address() : actor_addr{};
}
actor_id actor::id() const {
return (m_ptr) ? m_ptr->id() : 0;
}
} // namespace caf
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