I previously asked this question on how to make the “version” of serialization usingboost::serialization::access
I was able to do some of what I want, but there seem to be significant limitations.
In particular, I would like to be able to change versions at runtime and dynamically change the serialization version in code.
However the macro
BOOST_CLASS_VERSION(ClassName, ver)
doesn't seem to allow this type of behavior.
I suppose I can create different classes and use them each when I need it, but I would prefer not to do this because we need a lot of code changes.
Is there a way to programmatically change the class to use different versions during the same execution?
, :
, , ( /), , .