Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2003-07-26 15:04:37

>| What don't you understand in the expression "isnan is a private function"?
>What being private has to do with being trapping or not?
Guillaume point is that this isnan(), being an implementation detail, is known to never recieve a sNAN, so it does not has to
account for that situation. Just as you won't put bounds check in an internal function accessing an internal array with a fixed
known size.

Your point I can't understand though.

Are you saying that an isnan() could trigger a sNAN trap even if it doesn't recieve a sNAN? That is, can a reasonable
implementation of it be so wrong as to _generate_ a sNAN?
Or are you arguing that the interval library should contend for possible sNAN as input?

If the former, I'm sure we are all interested in knowing how can that happen.
If the later, I agree with Guillaume that this is a design decision that is already made, and I don't see a compelling reason
for changing it. Most likely, if the user inputs sNAN to the interval library, a trap will be triggered way before isnan() is

An interval library _could_ be designed to cope with sNAN, but this is not the case here and I don't see a real benefit for
adding such complexity.

Fernando Cacciola

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