serialization: binary archives from 1.44 to 1.46.1...
just ran into this, it seems binary archives made with 1.44 do not read in the latest(1.46.1) version.
Since I read about fix_six.cpp, I thought let's try modifying the lib version, maybe that helps. (maybe somebody put fixes in that break other things?)
If I change the lib version from 7 to 8, it reads in correctly.....
if(boost::archive::library_version_type(7) == lvt){
lvt = boost::archive::library_version_type(8);
fb.pubseekpos(26, std::ios_base::out);
fb.sputn(reinterpret_cast
as a follow-up:
I checked the file basic_archive.cpp in boost1.44 and in 1.46.1:
in 1.44 version number is set to 7:
BOOST_ARCHIVE_VERSION(){
return library_version_type(7);
}
while the comments in the file for 1.46.1 say:
// 8 - Boost 1.44
// separated version_type into library_version_type and class_version_type
// changed version_type to be stored as 8 bits.
I guess my fix for files made with 1.44 version, changing lib version from 7 into 8 should be correct, since 1.46.1 is making the wrong assumption about version_type from version 1.44
best regards,
Filip Peters.
----- Original Message -----
From: Filip Peters
participants (1)
-
Filip Peters