From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10547 invoked by alias); 18 Sep 2002 21:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10518 invoked by uid 71); 18 Sep 2002 21:46:01 -0000 Date: Wed, 18 Sep 2002 14:46:00 -0000 Message-ID: <20020918214601.10517.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: John Carter Subject: Re: libstdc++/7961: compare( char *) implemented incorrectly. Reply-To: John Carter X-SW-Source: 2002-09/txt/msg00561.txt.bz2 List-Id: The following reply was made to PR libstdc++/7961; it has been noted by GNATS. From: John Carter To: John Carter Cc: Andreas Schwab , gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/7961: compare( char *) implemented incorrectly. Date: Thu, 19 Sep 2002 09:40:37 +1200 (NZST) On Thu, 19 Sep 2002, John Carter wrote: > strcmp( abcNull.c_str(), "abs") == 0 > I would go for correctness and simplicity over speed. Damn! I was typing too fast, being too fancy... Should be... strcmp( abcNull.c_str(), "abc") == 0 -- John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand Good Ideas: Ruby - http://www.ruby-lang-org - The best of perl,python,scheme without the pain. Valgrind - http://developer.kde.org/~sewardj/ - memory debugger for x86-GNU/Linux Free your books - http://www.bookcrossing.com