Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 15320 invoked from network); 20 Aug 2007 13:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2007 13:51:31 -0000 Received: (qmail 20190 invoked by uid 500); 20 Aug 2007 13:51:28 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 20174 invoked by uid 500); 20 Aug 2007 13:51: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 20163 invoked by uid 99); 20 Aug 2007 13:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 06:51:28 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=SPF_PASS,SUBJ_ALL_CAPS 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; Mon, 20 Aug 2007 13:51:26 +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: [PATCH] STDCXX-515 Date: Mon, 20 Aug 2007 16:51:01 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE6438D3E9BE@epmsa009.minsk.epam.com> In-Reply-To: <46C1CE7F.5020702@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] STDCXX-515 Thread-Index: AcfeinS5h03Ixc0eR96TwWzW93Gu2QEpjwvg References: <7BDB2168BEAEF14C98F1901FD2DE6438C9161C@epmsa009.minsk.epam.com> <46C1CE7F.5020702@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: Tuesday, August 14, 2007 6:47 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: [PATCH] STDCXX-515 >=20 > Farid Zaripov wrote: > > Below is the patch for fix STDCXX-515. > >=20 > > ChangeLog: > > * sstream.cc (xsputn): Correct write position after growing the=20 > > buffer. >=20 > Why do we need to do it in xsputn()? Isn't str() supposed to keep > pptr() at the right offset after growing the buffer? No. ----------------- 27.7.1.2 Member functions [stringbuf.members] void str(const basic_string& s ); 2 Effects: Copies the content of s into the basic_stringbuf underlying character sequence. If mode & ios_- base::out is true, initializes the output sequence such that pbase() points to the first underlying character, epptr() points one past the last underlying character, and pptr() is equal to epptr() if mode &ios_base::in is true, otherwise pptr() is equal to pbase(). ----------------- Farid.