The most recent version of the portable binary archive supports this. Note however, that if you write an integer greater than 32 bits to the archive, the and try to read it on a 32 bit machine, it will throw an exception. Robert Ramey Benjamin Sobotta wrote:
On Wednesday 16 July 2008 19:46:39 Mathieu Peyréga wrote:
Hello,
I'm wondering if a binary archive generated on a 32 bits platform would be readable on a 64 bits one... My guess is no... because i am facing an issue i strongly suspect to come from there...
Any clues ?
I got a basic_string::resize exception evene before trying to call the serialize method... just doing :
std::ifstream fichier(filename.c_str(),std::ios::binary); boost::archive::binary_iarchive archive(fichier);
the second line causes the exception...
Regards,
Mathieu -- http://www.incub.net/
Hi!
Yes, I had exactly the same problem. I circumvented it by using text archives. Of course, these are bigger in size but I needed the compatibility.
Benjamin