-
Notifications
You must be signed in to change notification settings - Fork 779
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
Versioning does not work across compilation units #137
Comments
Possible ways to fix:
|
May still be broken on Linux, see: https://groups.google.com/forum/#!topic/cerealcpp/u0GrjJCUJts. Can likely be fixed by applying changes seen in pull request: f29728b |
AzothAmmo
added a commit
that referenced
this issue
Jan 15, 2015
Should be fixed on branch issues_113_137, will be merged into develop soon. |
fixed on develop (6e41ed8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When registering a type, version information is stored in two places:
Version<T>
StaticObject<Versions>
.When saving a type, we currently try to get its version number by looking at the member static variable. When loading, we access the
StaticObject
. This means that when something is versioned in one compilation unit, it won't be available via the specialization ofVersion<T>
, since we never instantiate the class.See https://groups.google.com/forum/#!topic/cerealcpp/vBYPUzGB9Mw for more information.
The text was updated successfully, but these errors were encountered: