Re: GCC 3.3.1, new warnings with <limits>

From: Terry Lambert <tlambert2_at_mindspring.com>
Date: Mon, 14 Jul 2003 11:33:26 -0700
David Leimbach wrote:
> This is a good policy in general, however, one could easily argue that
> what is trying to be determined with signedness  and such being
> less-than-compared
> to 0 isn't really a big deal and possibly the only way to implement this
> numeric_limits<T>::digits thing without any type introspection which
> C++ currently
> lacks.
> 
> The following would work for example in a template function:

[ ... ]

Gcc needs a #pragma to disable specific warnings as a one-shot.

This was discussed in detail on the GCC mailing list.

-- Terry
Received on Mon Jul 14 2003 - 09:34:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC