Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 15:33:26 -0500
From:      David Leimbach <leimy2k@mac.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: GCC 3.3.1, new warnings with <limits>
Message-ID:  <5574086.1058214806759.JavaMail.leimy2k@mac.com>

next in thread | raw e-mail | index | archive | help
 
On Monday, July 14, 2003, at 01:33PM, Terry Lambert <tlambert2@mindspring.com> wrote:

>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:
>
>[ ... ]
>


True... but I don't think I was talking about a one-shot disabling of the message.

I was thinking more about how a compliant C++ compiler can determine the signedness
of a datatype without type introspection or type metadata available at compile time.  [which
seems to be what numeric_limits<T> is all about doesn't it?]

Dave
>Gcc needs a #pragma to disable specific warnings as a one-shot.
>
>This was discussed in detail on the GCC mailing list.
>
>-- Terry
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5574086.1058214806759.JavaMail.leimy2k>