
26 Jun
2006
26 Jun
'06
3:13 p.m.
Stefan van den Oord wrote:
As a matter of fact, I already ran into other issues with that solution I suggested.
I didn't really give this much thought yet, but would it be an idea to pass the size of the type to save_impl, just as you do to load_impl, and then use that real size instead of a computed size?
The problem is that the "real size" may be different between the sending and receiving machines. I tweaked portable_binary_iarchive to properly sign extend negative values which I believe solves the problem - I havn't tested it yet though. Robert Ramey