[Serialization] xml_archive version

Hi, I'm trying to read in a xml_archive created by a previous version of the serialization library (version="3") with the version from CVS head (version="4"). The reading fails in load_collection here as there is no "item_version" field. if(3 < ar. get_library_version ()){ ar >> BOOST_SERIALIZATION_NVP(item_version); } Shouldn't a xml_archive be doing a set_library_version() based on the version of the archive it's reading, or am I missing something? Regards, Richard.

Looks like your correct. I've made a change which I think will address the problem. Robert Ramey Richard Crossley wrote:
Hi,
I'm trying to read in a xml_archive created by a previous version of the serialization library (version="3") with the version from CVS head (version="4").
The reading fails in load_collection here as there is no "item_version" field.
if(3 < ar. get_library_version ()){ ar >> BOOST_SERIALIZATION_NVP(item_version); }
Shouldn't a xml_archive be doing a set_library_version() based on the version of the archive it's reading, or am I missing something?
Regards,
Richard.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Richard Crossley
-
Robert Ramey