Always false float comparisons

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Fri May 13 14:42:38 PDT 2016


On Friday, 13 May 2016 at 21:36:52 UTC, Walter Bright wrote:
> On 5/13/2016 1:57 PM, Ola Fosheim Grøstad wrote:
>> It should in C++ with the right strict-settings,
>
> Consider what the C++ Standard says, not what the endless 
> switches to tweak the compiler do.

The C++ standard cannot even require IEEE754. Nobody relies only 
on what the C++ standard says in real projects. They rely on what 
the chosen compiler(s) on concrete platform(s) do.



More information about the Digitalmars-d mailing list