Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2003-07-13 03:30:25


Guillaume Melquiond <gmelquio_at_[hidden]> writes:

| On 4 Jul 2003, Gabriel Dos Reis wrote:
|
| > "Toon Knapen" <toon.knapen_at_[hidden]> writes:
| >
| > | > seems like this code
| > | >
| > | > template< typename T >
| > | > bool is_nan( const T& v )
| > | > {
| > | > return std::numeric_limits<T>::has_quiet_NaN && (v != v);
| > | > }
| > | >
| > | > does not work correctly on some machines.
| > |
| > | Could you be more specific. On which machines for instance ?
| >
| > If v is a signalling NaN, and you're for example using the SPARC
| > architecture for example, you might get a trap.
| >
| > -- Gaby
|
| Just to avoid any kind of misunderstanding, the interval library don't use
| signaling NaN.

I was answering a query about architectures.

>From your above statement, I understand that the interval library
does not use sNaNs by itself. What about users getting sNaNs with the
library?

-- Gaby


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk