Allow std::move ActorId in send_closure

GitOrigin-RevId: 452924630a41d336006d49b63880e244a6be280f
This commit is contained in:
Arseny Smirnov 2018-09-26 12:01:50 +03:00
parent eb4c85a797
commit 8fd13291d0

View File

@ -181,6 +181,10 @@ template <class T>
ActorRef::ActorRef(const ActorId<T> &actor_id) : actor_id_(actor_id) {
}
template <class T>
ActorRef::ActorRef(const ActorId<T> &&actor_id) : actor_id_(actor_id) {
actor_id.clear();
}
template <class T>
ActorRef::ActorRef(const ActorShared<T> &actor_id) : actor_id_(actor_id.get()), token_(actor_id.token()) {
}
template <class T>