Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2003-07-04 11:18:45


"jvd" <vygis_d_at_[hidden]> writes:

| Dear boosters,
|
| 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.

Yes. It is an incorrect (unfortunately popular) implementation.

-- Gaby


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