Minor cleanup in aspiring actor (#2688)

Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com>
This commit is contained in:
bilal614
2024-08-07 12:57:14 +03:00
committed by GitHub
parent b392e4aa99
commit 79a2a2c104

View File

@@ -50,7 +50,7 @@ private:
std::shared_ptr<Mailbox> mailbox;
std::aligned_storage_t<sizeof(Object)> objectStorage;
Object& object() { return *reinterpret_cast<Object*>(&objectStorage); }
Object& object() { return reinterpret_cast<Object&>(objectStorage); }
friend class EstablishedActor<Object>;
friend class Actor<Object>;