Boost logo

Boost :

Subject: Re: [boost] [endian] Testing floating point interoperability
From: Peter Dimov (lists_at_[hidden])
Date: 2015-03-20 11:43:52

Beman Dawes wrote:
> The most conservative approach is to remove the return-by-value reverse
> functions, and note in the docs that only in-place reverse is available
> for FP. That will give us more time to determine if return-by-value
> endianness reverse is valid for floating point.

Even if everything round-trips correctly on all compilers we care about,
returning "wrong endianness" by value is not standard conforming for any
type, not just float. int, for instance, is allowed to have padding bits and
trap representations, or to not preserve the sign bit of negative zero.

Boost list run by bdawes at, gregod at, cpdaniel at, john at