Subject: Re: [boost] [Review] Boost.Endian mini-review
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2015-01-31 00:42:49
On Fri, Jan 30, 2015 at 12:17 PM, Cliff Green <cliffg_at_[hidden]> wrote:
> I'm still not sure what to suggest to Beman for the Endian library wrt to
> float and double API's, specially as this library could or should be the
> basis for a standardization proposal. Integers are completely safe and
> well-defined for swapping - all bit patterns form valid integers and
> swapping bytes never result in "special" hardware processing.
I don't think that it actually guaranteed (it is only guaranteed for
unsigned char). It is fine for 2s-compliment, but for endian in the
standard, other integer representations need to be taken into account.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk