Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 26117 invoked from network); 24 Jul 2007 16:39:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 16:39:26 -0000 Received: (qmail 74981 invoked by uid 500); 24 Jul 2007 16:39:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 74965 invoked by uid 500); 24 Jul 2007 16:39:28 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 74954 invoked by uid 99); 24 Jul 2007 16:39:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:39:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:39:24 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: STDCXX tests fails and reasons [MSVC] Date: Tue, 24 Jul 2007 19:39:01 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE6438B01279@epmsa009.minsk.epam.com> In-Reply-To: <46A4CD3D.4000805@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: STDCXX tests fails and reasons [MSVC] Thread-Index: AcfNQLM+oxSt0P7UQ267ySAqzdBpKwAz0qeA References: <7BDB2168BEAEF14C98F1901FD2DE64389D70B2@epmsa009.minsk.epam.com> <468499C8.7090101@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE64389D7430@epmsa009.minsk.epam.com> <46893476.7020904@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE6438A6E0DB@epmsa009.minsk.epam.com> <469FAD8A.70102@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE6438B00CE2@epmsa009.minsk.epam.com> <469FEDC6.7090301@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE6438B00FB8@epmsa009.minsk.epam.com> <46A4CD3D.4000805@roguewave.com> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Monday, July 23, 2007 6:46 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: STDCXX tests fails and reasons [MSVC] >=20 > > Usually when rw_match() used for comparing the single characters,=20 > > used rw_match (&c1, &c2, 1) form: >=20 > But that's the wrong way to do it. >=20 > The right (and easier) way to compare individual characters=20 > of the same type is to use UserTraits::eq(). But there compared not char vs char, but char vs charT where charT is one of (char, wchar_t, UserChar). So we should use UserTraits::eq() along with make_char(): char exp; // expected value from StringTestCase charT res; // result value UserTraits::eq (make_char (exp), res); Farid.