Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2020-09-26 12:37:47


On Fri, 25 Sep 2020 at 23:55, Vinnie Falco via Boost
<boost_at_[hidden]> wrote:
>
> So, I think at some point I will want to introduce options for
> serialization, and one of the options could be the treatment of
> integers outside the range ~+/-2^53. We could:
>
> 1. serialize them as-is (current implementation)
> 2. serialize them as the nearest representable IEEE double
> 3. throw an exception
>
> I know some people might find #3 weird, I'm open to feedback.

What's the problem with storing it as a string or as an arbitrary
number when it's not representable as int64 or a double?
It doesn't cost anything to do this, it's a pure extension with no
impact on people that don't need it.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk