Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: "John Carson" <jcarson_n_o_sp_am_@xxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 13:27:07 +1000
"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
.
- References:
- C2124 is most disrespectful of IEEE floating point arithmetic
- From: Dr Pizza
- Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: Doug Harrison [MVP]
- Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: Dr Pizza
- Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: Alexander Grigoriev
- Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: John Carson
- Re: C2124 is most disrespectful of IEEE floating point arithmetic
- From: Alexander Grigoriev
- C2124 is most disrespectful of IEEE floating point arithmetic
- Prev by Date: Re: C2124 is most disrespectful of IEEE floating point arithmetic
- Next by Date: Re: Build registered dll's
- Previous by thread: Re: C2124 is most disrespectful of IEEE floating point arithmetic
- Next by thread: Re: C2124 is most disrespectful of IEEE floating point arithmetic
- Index(es):