24 Dec
2017
24 Dec
'17
11:18 p.m.
On 12/24/17 2:28 PM, Olaf van der Spek via Boost wrote:
On Sun, Dec 24, 2017 at 6:04 PM, Peter Dimov via Boost
wrote: It should be possible to create portable ones based on Endian's buffer types, one just needs to choose an appropriate size for 'int' (32 bits would probably be fine here) and 'long' (32, 48, or 64? hard to say.)
48?? ;)
How about variable-width encoding? Hard-coding the size of int might be problematic.
That's what the sample portable_binary_archive in the serialization library already does. The issue gets sticker for floating point numbers in the portable binary archive. Robert Ramey