diff --git a/tdactor/td/actor/impl/Actor.h b/tdactor/td/actor/impl/Actor.h index 0b52f0fb..7bd82ab8 100644 --- a/tdactor/td/actor/impl/Actor.h +++ b/tdactor/td/actor/impl/Actor.h @@ -115,7 +115,8 @@ inline ActorId<> Actor::actor_id() { } template ActorId Actor::actor_id(SelfT *self) { - CHECK(static_cast(self) == this); + CHECK(static_cast(self) == this) + << self << " " << static_cast(self) << " " << this << " " << empty(); return ActorId(info_.get_weak()); } @@ -124,7 +125,8 @@ inline ActorShared<> Actor::actor_shared() { } template ActorShared Actor::actor_shared(SelfT *self, uint64 id) { - CHECK(static_cast(self) == this); + CHECK(static_cast(self) == this) + << self << " " << static_cast(self) << " " << this << " " << empty(); return ActorShared(actor_id(self), id); }