
Most modern platforms use the IEEE 754 (1985) encoding for binary data (float/double). But I suppose there is still the (easy to handle) endianess issue. http://www.appinf.com/download/FPIssues.pdf -----Messaggio originale----- Da: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] Per conto di Ákos Maróy Inviato: sabato 9 agosto 2008 14.54 A: boost-users@lists.boost.org Oggetto: Re: [Boost-users] cross-platfrom binary serialization? Jeff,
lookup portable_binary_archive, IIRC in the ...libs/serialization/example directory. Make sure you use the version from Trunk which has had some bugs fixed.
meanwhile I found the svn URL for boost, at http://svn.boost.org/svn/boost/trunk I'm looking at the sample, and I see the following comment: // "Portable" input binary archive. It addresses integer size and endienness so // that binary archives can be passed across systems. Note:floating point types // not addressed here so I guess floating point type support needs to be added to this implementation? what would be your suggestion to implement floating point support? use some portable binary representation for floating point types? Akos _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users