Subject: Re: [boost] Candidate for 1.66.1, if there is one
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-12-25 09:05:22
On 12/25/17 01:28, Olaf van der Spek via Boost wrote:
> On Sun, Dec 24, 2017 at 6:04 PM, Peter Dimov via Boost
> <boost_at_[hidden]> 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.
I think, the main problem is not encoding but what to do if the encoded
value does not fit in the type on the decoding end.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk