[PATCH] libstdc++/5045: wrong numeric_limits::digits10 for integer types

Nathan Myers ncm-nospam@cantrip.org
Wed Dec 12 12:19:00 GMT 2001


Gabriel Dos Reis wrote:

> From my point of view, there is a defect to raise:
> numeric_limits<bool>::digits10 is meaningless.

The policy for numeric_limits<> is that if a value is meaningless for 
a particular type, it should be zero.  I.e., this is NAD, in general, 
except that it doesn't seem to be clear enough that the principle 
applies to digits10 for bool.

Nathan Myers
ncm at cantrip dot org



More information about the Libstdc++ mailing list