Numeric limits

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Thu Jul 27 03:08:00 GMT 2000


"Anthony Williams" <anthony_w.geo@yahoo.com> writes:

| I was just looking at the numeric limits stuff, and noticed that
| numeric_limits<>::infinity(), quiet_NaN() and signaling_NaN() are all set to
| return zero for all the floating point types.

There are there just for transition. By no means, are they in their
frozen states.

| 
| On Solaris there is a library (sunmath) that provides functions to obtain these
| values, which can then be used in gen_num_limits.cc to provide them without
| requiring this library.

I can, unfortunately, no longer get gcc (and therefore libstdc++-v3)
built on my solaris boxes (because of HUGE memory usage) -- just tried
this morning, and got seg-fault, sight. So I can't experiment myself.
However, I'm williing to cooperate wiith you to sort these things.

| Would you like the code I've written for gen_num_limits.cc which uses these on
| Solaris?

Yes, definitely.

-- Gaby


More information about the Libstdc++ mailing list