From stdcxx-dev-return-5763-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Tue Oct 23 13:15:49 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 92293 invoked from network); 23 Oct 2007 13:15:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 13:15:49 -0000 Received: (qmail 32927 invoked by uid 500); 23 Oct 2007 13:15:36 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 32915 invoked by uid 500); 23 Oct 2007 13:15:36 -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 32904 invoked by uid 99); 23 Oct 2007 13:15:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 06:15:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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, 23 Oct 2007 13:15:38 +0000 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: svn commit: r587164 - /incubator/stdcxx/branches/4.2.x/include/vector.cc Date: Tue, 23 Oct 2007 16:15:16 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE64380121F224@epmsa009.minsk.epam.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r587164 - /incubator/stdcxx/branches/4.2.x/include/vector.cc Thread-Index: AcgU0Jpl3pMBL79hRdeem783yedIPwAAdlUgACj5gYA= References: <20071022172300.B4F7E1A9838@eris.apache.org> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Travis Vitek [mailto:Travis.Vitek@roguewave.com]=20 > Sent: Monday, October 22, 2007 9:38 PM > To: stdcxx-dev@incubator.apache.org > Subject: RE: svn commit: r587164 -=20 > /incubator/stdcxx/branches/4.2.x/include/vector.cc >=20 >=20 > It seems that this change would cause some potentially=20 > serious problems in two different cases. >=20 > 1. _TypeT is a UDT with an implementation of operator& that=20 > returns something that isn't convertible to a pointer type.=20 > [compile error] > 2. _TypeT is a UDT with an implementation of opreator& that=20 > returns something convertible to pointer, but the returned=20 > value is not the address of the object. [runtime error] Good catch, thanks. I've updated the patch for the issue to use allocator::address() method. Farid.