
Has anyone had any luck getting a serialized object (created using boost binary serialization) between two different platforms? I am currently using binary serialization on 32 bit & 64 bit machines without issue. However, passing the serialized objects between the two platform types fail. The serialized classes themselves support interoperability, and as such it appears that the serialization libraries themselves do not. I am assuming they are storing some type of meta data along with the payload? Any thoughts on how to do this and keep with binary serialization? -- John

It is stated in the documentation that native binary archives cannot be expected to be portable accross machine architectures. text (and xml) based archives should be portabable without problem. Robert Ramey "John Spicer" <jspicer@cabcds.org> wrote in message news:C73E689C9FCF884B9A550ECFADA0721C087762@exchange.cab-cds.org... Has anyone had any luck getting a serialized object (created using boost binary serialization) between two different platforms? I am currently using binary serialization on 32 bit & 64 bit machines without issue. However, passing the serialized objects between the two platform types fail. The serialized classes themselves support interoperability, and as such it appears that the serialization libraries themselves do not. I am assuming they are storing some type of meta data along with the payload? Any thoughts on how to do this and keep with binary serialization? **** There is an example of a "portable" binary archive in the documentation and examples. This particular example doesn't implement serialization of floating points. You could finish that example if you wanted. -- John _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

"Robert Ramey" <ramey@rrsd.com> wrote:
It is stated in the documentation that native binary archives cannot be expected to be portable accross machine architectures. text (and xml) based archives should be portabable without problem.
I think this has been requested before, but maybe now with Beman's new (and nice) "endian" library, it's time to put together a portable (cross-platform) binary archive scheme (maybe more than one) for Boost.Serialization. I have yet to use Boost.Serialization, so I don't know the issues or scope of effort, but would be happy to volunteer some help (and it would be a good excuse to start learning B.S). Cliff
participants (3)
-
Cliff Green
-
John Spicer
-
Robert Ramey