diff --git a/tdactor/td/actor/impl/ActorId-decl.h b/tdactor/td/actor/impl/ActorId-decl.h index e1959eff2..3908583c0 100644 --- a/tdactor/td/actor/impl/ActorId-decl.h +++ b/tdactor/td/actor/impl/ActorId-decl.h @@ -150,6 +150,8 @@ class ActorRef { template ActorRef(const ActorId &actor_id); template + ActorRef(ActorId &&actor_id); + template ActorRef(const ActorShared &actor_id); template ActorRef(ActorShared &&actor_id); diff --git a/tdactor/td/actor/impl/ActorId.h b/tdactor/td/actor/impl/ActorId.h index e9feac510..ac1aeb505 100644 --- a/tdactor/td/actor/impl/ActorId.h +++ b/tdactor/td/actor/impl/ActorId.h @@ -181,7 +181,7 @@ template ActorRef::ActorRef(const ActorId &actor_id) : actor_id_(actor_id) { } template -ActorRef::ActorRef(const ActorId &&actor_id) : actor_id_(actor_id) { +ActorRef::ActorRef(ActorId &&actor_id) : actor_id_(actor_id) { actor_id.clear(); } template