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

Gabriel Dos Reis gdr@codesourcery.com
Wed Dec 12 22:59:00 GMT 2001


Nathan Myers <ncm-nospam@cantrip.org> writes:

| 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.

Well, that is preciely my point and I don't think we should dismiss
the issue as a NAD.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Libstdc++ mailing list