Re: C2124 is most disrespectful of IEEE floating point arithmetic

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
news:eidm4A%23yGHA.3440@xxxxxxxxxxxxxxxxxxxx
Behavior is undefined for runtime-evaluated expressions. The standard
explicitly says that if result of a constant expression is not
mathematically defined, the program is malformed.

Yes, the problem is that 1.0f/0.0f does not appear to be a constant
expression in terms of the Standard unless used for the purpose of non-local
static object initialization.

--
John Carson


.