Re: [boost] is_nan

2003-07-13 Thread Gabriel Dos Reis
Guillaume Melquiond <[EMAIL PROTECTED]> writes: | On 4 Jul 2003, Gabriel Dos Reis wrote: | | > "Toon Knapen" <[EMAIL PROTECTED]> writes: | > | > | > seems like this code | > | > | > | > template< typename T > | > | > bool is_nan( const T& v ) | > | > { | > | > return std::nume

Re: [boost] is_nan

2003-07-04 Thread Guillaume Melquiond
On Fri, 4 Jul 2003, jvd wrote: > [snip] > > > > does not work correctly on some machines. > > > > Could you be more specific. On which machines for instance ? > > Me, myself personally tested on Intel Celeron 733, OS WinXP. > Compiler used: gcc 3.2 mingw port for windows. > > Also reported not to

Re: [boost] is_nan

2003-07-04 Thread Guillaume Melquiond
On 4 Jul 2003, Gabriel Dos Reis wrote: > "Toon Knapen" <[EMAIL PROTECTED]> writes: > > | > seems like this code > | > > | > template< typename T > > | > bool is_nan( const T& v ) > | > { > | > return std::numeric_limits::has_quiet_NaN && (v != v); > | > } > | > > | > does n

Re: [boost] is_nan

2003-07-04 Thread jvd
[snip] > > does not work correctly on some machines. > > Could you be more specific. On which machines for instance ? Me, myself personally tested on Intel Celeron 733, OS WinXP. Compiler used: gcc 3.2 mingw port for windows. Also reported not to work on Sun machine although on some other comput

Re: [boost] is_nan

2003-07-04 Thread Gabriel Dos Reis
"Toon Knapen" <[EMAIL PROTECTED]> writes: | > seems like this code | > | > template< typename T > | > bool is_nan( const T& v ) | > { | > return std::numeric_limits::has_quiet_NaN && (v != v); | > } | > | > does not work correctly on some machines. | | Could you be more

Re: [boost] is_nan

2003-07-04 Thread Gabriel Dos Reis
"jvd" <[EMAIL PROTECTED]> writes: | Dear boosters, | | seems like this code | | template< typename T > | bool is_nan( const T& v ) | { | return std::numeric_limits::has_quiet_NaN && (v != v); | } | | does not work correctly on some machines. Yes. It is an incorrect (un

RE: [boost] is_nan

2003-07-04 Thread Paul A. Bristow
] | [mailto:[EMAIL PROTECTED] Behalf Of jvd | Sent: Friday, July 04, 2003 12:34 PM | To: Boost mailing list | Subject: [boost] is_nan | | | Dear boosters, | | seems like this code | | template< typename T > | bool is_nan( const T& v ) | { | return std::numeric_limits::has

RE: [boost] is_nan

2003-07-04 Thread Toon Knapen
> seems like this code > > template< typename T > > bool is_nan( const T& v ) > { > return std::numeric_limits::has_quiet_NaN && (v != v); > } > > does not work correctly on some machines. Could you be more specific. On which machines for instance ? ___

[boost] is_nan

2003-07-04 Thread jvd
Dear boosters, seems like this code template< typename T > bool is_nan( const T& v ) { return std::numeric_limits::has_quiet_NaN && (v != v); } does not work correctly on some machines. As far, as I can remember, intervals library also use similar implementation of is_na