Skip to content
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

Specialize adjust_storage_size() so it works correctly for cereal::JSONInputArchive. #49

Closed
wants to merge 1 commit into from

Conversation

benjamin0
Copy link
Contributor

I needed to revert this line for the cereal::BinaryInputArchive() to work. Do we still need it for the JSON archive?

@akleeman
Copy link
Collaborator

I would guess that we do need it still ... though if the tests pass I think you're good to go.

@benjamin0 benjamin0 changed the title Revert =-2 off of storage size? Specialize adjust_storage_size() so it works correctly for cereal::JSONInputArchive. Aug 20, 2018
@benjamin0 benjamin0 force-pushed the ben/size-off-by-2 branch 2 times, most recently from 0ab5782 to 8eddf7a Compare August 20, 2018 22:31
@akleeman
Copy link
Collaborator

Awesome looks good. Merge away.

If you want to be sure everything will always serialize to binary you could add another test to test_serialize along the lines of TYPED_TEST(PolymorphicSerializeTest, test_roundtrip_serialize) that roundtrips via Binary.

Overload `adjust_storage_size()` so it works correctly for
cereal::JSONInputArchive.
@benjamin0
Copy link
Contributor Author

closing in favor of #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants