Date: Mon, 14 Jul 2003 11:33:26 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: David Leimbach <leimy2k@mac.com> Cc: freebsd-current@freebsd.org Subject: Re: GCC 3.3.1, new warnings with <limits> Message-ID: <3F12F776.67B897AF@mindspring.com> References: <20030712155333.GA79322@crodrigues.org> <BEDC8C48-B4DC-11D7-BE3B-0003937E39E0@mac.com> <20030713031312.GA89014@crodrigues.org> <401FAE5E-B535-11D7-BE3B-0003937E39E0@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F12F776.67B897AF>
