-
Notifications
You must be signed in to change notification settings - Fork 803
Issue with load_and_construct and versioning. #216
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
Comments
It looks like I never wrote any |
Would it be possible to prioritize this? I need to get this in to my save game before shipping (plenty of time). I would more immediately benefit from getting this in to my level editor. Current workaround is to load the old version, save the new version, then update my load method to accept the recently saved new version. This works locally for now. |
I'll try and take a crack at it this weekend, I have been super busy lately so not much has happened with cereal in the last two months or so. |
Thank you so much! I love cereal so much. Hands down my favorite library (chaiscript is fantastic too for similar ease of binding, but cereal is even nicer), this will help immensely. |
Didn't have much time to work on this, I have essentially no free time until about mid way through December so it may get done before then but more likely this and everything else will happen throughout December. |
No troubles! Have a great month and happy holidays. Looking forward to this, but I can wait. :) |
Any news? I'm really excited about swapping to versioning but heavily rely on the load_and_construct methods. |
It is slated for 1.2 which I'm working on now. |
done done |
This is huge thank you so much! |
I wanted to switch my code to the versioned save/load/serialize methods, but was having trouble with the namespace included in the following causing issues with the macro:
CEREAL_CLASS_VERSION(MV::Scene::Node, 1);
Because my version of cereal was pretty old I decided to pull and get latest, and I am no longer having issues with the above line, I changed the signature of serialize and load_and_construct from this original state:
template
void serialize(Archive & a_archive)
template
static void load_and_construct(Archive & a_archive, cereal::construct &a_construct)
To this:
template
void serialize(Archive & a_archive, const uint32_t a_version)
template
static void load_and_construct(Archive & a_archive, cereal::construct &a_construct, const uint32_t a_version)
And am now getting the following error which seems to indicate the load_and_construct is no longer actually being detected due to the versioned function signature:
The text was updated successfully, but these errors were encountered: