Closed tomeichlersmith closed 2 years ago
The BOOST_CLASS_VERSION
macro simply defines a full-specialization of a backend template struct with the default value of 0
. This would be pretty easy to pull into our framework for serialization.
The BOOST_SERIALIZATION_SPLIT_MEMBER
macro may also be of use. It generates member functions so that reading- and writing-specific functions are called instead of the blanket attach method. This could be helpful for optionally-reading new members (depending on version of file) but still being able to write the new members.
Is your feature request related to a problem? Please describe. If a user wants to update an event object but still retain the ability to read data files written with the old version.
Describe the solution you'd like Both ROOT and Boost.Serialization have a method for versioning the class that is being serialized. Adopting this macro-style versioning scheme would be appropriate.