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

[feature request] add serialize/ deserialize functionality #13

Closed
yuvalif opened this issue Dec 21, 2017 · 0 comments
Closed

[feature request] add serialize/ deserialize functionality #13

yuvalif opened this issue Dec 21, 2017 · 0 comments

Comments

@yuvalif
Copy link
Contributor

yuvalif commented Dec 21, 2017

This was also discussed here: https://stackoverflow.com/questions/32289719/how-to-serialize-boostaccumulatorsaccumulator-set

The ability to store the internal state of an object, as well as to initialize it with state is would be very useful, as this would eliminate the need to store the actual data point.
Currently the different classes cannot be extended by inheritance, since their internal state is private.
Anyway, since serialization and deserialization does not have any size/speed impact on the class, it is probably better to add this to the class and not to inherited version of it.
Probably good to use the boost serialization library, to assure that the output is portable (serialize on one machine and deserialize on another).

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

No branches or pull requests

1 participant