-
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
#268: Fix deserialization of polymorphic types when base class is specified as a template parameter. #362
base: develop
Are you sure you want to change the base?
Conversation
842ae6f
to
32264fe
Compare
I'll wait to look deeper at the implementation until the tests are passing. |
4c4027c
to
9c50fab
Compare
auto ret = checkpoint::serialize(*task); | ||
auto out = checkpoint::deserialize<Base>(std::move(ret)); | ||
|
||
EXPECT_TRUE(nullptr != out); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should probably include an ID check here to ensure we are getting the right type instead of just checking that it's not null and the output value is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the check for typeid.
…ith/without serialization error checking
9bd0905
to
6fec221
Compare
Fixes #268