
This would be possible but ... a) It would require some effort and no one has found the benefit to be worth that effort. b) It would usually require that the whole archive be loaded into memory to be parsed. This would mean that one could no longer handle an arbitrary sized data set. For some applications this wouldn't be a problem. For others - a deal breaker. So its a question of trading one limitation for another - arbitray file size vs arbitrary member order. Robert Ramey Stan Vasilyev wrote:
I'm using boost::archive::xml_iarchive to read data from an XML archive created by hand. It works as long as I keep all the tags in the same order that they are serialized in my code. As soon as I put in an extra XML tag somewhere, de-serialization fails.
Since XML is order-independent, is it possible to make boost::serialization also order-independent?
Stan