|
Boost :
|
- Next message: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Previous message: Markus Schöpflin: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- In reply to: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Next in thread: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Reply: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
Johan Råde wrote:
> 3. Your <limits> header is a bit funny.
> numeric_limits<T>::quiet_NaN() returns a NaN with the signbit set.
> This triggered the assertion.
You need to allow for the possibility that the sign bit is set anyway.
> (Does it matter? Maybe. According to C99, positive NaN should be
> written to text files as "nan" or "+nan" and negative NaN as "-nan".
> And this will probably be part of C++0x as well.)
C++ doesn't guarentee any particular format for printing NaN's or Infinities
:-(
John.
- Next message: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Previous message: Markus Schöpflin: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- In reply to: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Next in thread: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
- Reply: Johan Råde: "Re: [boost] Optimized portable isnan, isfinite, fpclassify etc"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk