Problems with <limit> and nans

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Apr 30 23:35:00 GMT 2001


Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:

| There are problems with the <limits> header and nans. Running the executable
| generated by compiling the file tl.C by gcc 3.1 extracted from the file
| lib/config/limits_test.cpp from boost version 1.21.2 shows that the
| implementation of the <limits> header file is not standard conforming
| (there is also a comment in the header stressing this fact). Are there
| any plans of adding this functionality in the near future? 

Yes, there is work being done.

Note however that having NaN is not a conformance test.  So two
conformant implementations can give different answers.  The most
important thing to test before taking any action is iec_559.

-- Gaby



More information about the Libstdc++ mailing list