You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialize/deserialize smart pointers does not make sense to me. std::unique_ptr is for a single copy of object, and so serializing/deserializing it violates this. std::shared_ptr will have wrong reference counting with serializing/deserializing.
It does not make sense in scenarios like checkpointing and recovery, since pointers won't point to the previous addresses any more.
The text was updated successfully, but these errors were encountered:
ddmbr
changed the title
Disallow copying smart pointers
Disallow serialize/deserialize smart pointers
Feb 8, 2018
Serialize/deserialize smart pointers does not make sense to me.
std::unique_ptr
is for a single copy of object, and so serializing/deserializing it violates this.std::shared_ptr
will have wrong reference counting with serializing/deserializing.It does not make sense in scenarios like checkpointing and recovery, since pointers won't point to the previous addresses any more.
The text was updated successfully, but these errors were encountered: