Subject: Re: [boost] [endian] Some suggestions
From: Bjorn Reese (breese_at_[hidden])
Date: 2016-04-12 04:51:10


On 04/11/2016 01:47 AM, Gavin Lambert wrote:

> While that's true, surely any compiler/library should treat any NaN bit
> pattern as returning true from isnan() and friends, even if it is not
> bit-identical to the NaN that the compiler/library would generate itself.

Correct, arithmetic and relational operations disregard the NaN payload;
that is by design. If, however, you use the NaN payload to convey
information, such as errors or diagnostics, then the compiler generated
payloads can cause interoperability problems.