-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle reconstruction of virtual serialized types sensibly #151
Comments
I think I found a bug in allocateConstructForPointer in the non-virtual case, which is called by serialize(unique_ptr) - it reconstructs unconditionally, regardless of unpacking or not |
There's a philosophical question this work raises - if we're unpacking into a pointer that has a pre-reconstructed object, of the right type, should we trust that its serializer will get it into the right state and thereby avoid reallocating, or should we always reallocate? I'm inclined to say that a |
After thoroughly revising this in concert with the implementation of |
@bathmatt You may want to look at this also. |
I believe the intention of |
I agree on this point. The serialize should guarantee that it gets the object back into the right state regardless of the starting point. |
Discussion on EMPIRE call concluded that
|
#151: Split up virtual serialization logic and better support in-place deserialization
Addressed in #152 |
This will allow users to skip that if they allocate the object for themselves and don't need it.
The text was updated successfully, but these errors were encountered: