Boost logo

Boost :

Subject: Re: [boost] [endian] Project not maintained
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-04-04 13:45:59


On 2016-04-04 20:21, Peter Dimov wrote:
> Andrey Semashev wrote:
>
>> On a platform with non-IEEE floats, does write_le32 have to convert to
>> IEEE format before producing the bits in p?
>
> Yes.
>
>> What if the x value on the current platform is not representable in
>> IEEE float?
>
> It would put the closest representable IEEE value into the bits in p.
> Not much different from passing a double for x.

Since you convert the input value, possibly even losing information,
this is no longer about endian conversion but rather serialization. At
least, that's not what I expect from an endian library.


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