We use boost::archive::binary_iarchive
and binary_oarchive
here, and run into the following issue once in a while: a developer upgrades his local Boost-version and now the data-blobs produced by his program are not readable by others, forcing them to upgrade too.
There have not been a problem in the other direction: de-serialization of data written by older Boost-versions works in newer version. Which means, the serializer's version is recorded in the data-file...
I see, that binary_oarchive
takes a flags
argument (which defaults to zero). Perhaps, we can request, that serializer creates blobs readable by earlier versions of itself using a flag?
Any other way to ensure, that, for example, when serializing with Boost-1.75, the archives are understood by, at least, Boost-1.65?