From owner-freebsd-current@FreeBSD.ORG Mon Jul 14 11:34:36 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 208A737B401 for ; Mon, 14 Jul 2003 11:34:36 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CE5D43F3F for ; Mon, 14 Jul 2003 11:34:35 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38ldu3s.dialup.mindspring.com ([209.86.248.124] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19c89b-0002Am-00; Mon, 14 Jul 2003 11:34:28 -0700 Message-ID: <3F12F776.67B897AF@mindspring.com> Date: Mon, 14 Jul 2003 11:33:26 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Leimbach References: <20030712155333.GA79322@crodrigues.org> <20030713031312.GA89014@crodrigues.org> <401FAE5E-B535-11D7-BE3B-0003937E39E0@mac.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a43c6483f9dbc795a822f0c104425d7705350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: Craig Rodrigues cc: Alexander Kabaev cc: freebsd-current@freebsd.org Subject: Re: GCC 3.3.1, new warnings with X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 18:34:36 -0000 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::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