Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 90992 invoked from network); 23 Feb 2008 03:14:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2008 03:14:24 -0000 Received: (qmail 68132 invoked by uid 500); 23 Feb 2008 03:14:19 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 68063 invoked by uid 500); 23 Feb 2008 03:14:19 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 68054 invoked by uid 99); 23 Feb 2008 03:14:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 19:14:19 -0800 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 msebor@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 03:13:43 +0000 Received: by wx-out-0506.google.com with SMTP id i30so591077wxd.2 for ; Fri, 22 Feb 2008 19:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=eEhSdO9EcP53T9gfsFNTu/vvEeJeeE7V62WSrkfBnbM=; b=dmHxtXchqi14saOngSx7hebJmYx3xBHpDIFcpwRk9PXonU77C/PEbU8pIOA8iiA3zbfwodF1mUlPIRksogKr+kACsHNiYIqOovoDvJcdrtUJQwk6pL/pwxrPhnPR3iadAMRieefrqmhLWATWLSBMK+CeZ/ICuOlI2sYQhMF0/v4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=IQNhIrUTCr7d6oTeRP7RBUwKS7TnDmuDPApDV26kRBz/R02wd7d9eXyFz7qXpDMo7LRviCzypecpdFccU1b98P8pbwrsNQ4G3Sr3x+Ag8ouMvV0naZIbKfsLlqJ+tOAjUglYc/C2TQUaYrzMeEKfJ5d+Mnv4ClsEGXfUNC0l9pA= Received: by 10.141.22.1 with SMTP id z1mr598251rvi.67.1203736430883; Fri, 22 Feb 2008 19:13:50 -0800 (PST) Received: from localhost.localdomain ( [71.229.200.170]) by mx.google.com with ESMTPS id k2sm4939504rvb.36.2008.02.22.19.13.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Feb 2008 19:13:50 -0800 (PST) Message-ID: <47BF8F6C.7010806@roguewave.com> Date: Fri, 22 Feb 2008 20:13:48 -0700 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dev@stdcxx.apache.org Subject: Re: svn commit: r629584 - /stdcxx/trunk/include/string.cc References: <20080220193716.074291A9832@eris.apache.org> <47BF24BE.8070003@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE64383C3E9D@epmsa009.minsk.epam.com> In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE64383C3E9D@epmsa009.minsk.epam.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org Farid Zaripov wrote: > From: Martin Sebor [mailto:sebor@roguewave.com] > To: dev@stdcxx.apache.org > Subject: Re: svn commit: r629584 - /stdcxx/trunk/include/string.cc > > > >>> Author: faridz >>> Date: Wed Feb 20 11:37:12 2008 >>> New Revision: 629584 >>> >>> URL: http://svn.apache.org/viewvc?rev=629584&view=rev >>> Log: >>> 2008-02-20 Farid Zaripov >>> >>> * include/string.cc (__rw_replace): Removed unused variable __delta. >>> (__rw_replace_aux): Removed unused typedef. Used ::operator new() and >>> ::operator delete() instead of std::allocator::allocate() and >>> std::allocator::deallocate() respectively (since private base class >>> std::allocator is not accessible in __rw_replace_aux()). >> I don't think we're allowed to bypass the allocator and call new >> directly. > > Why? Here the operator new() used for allocate the temporary buffer and it's deallocated within this function. Ah. You're right, that shouldn't matter. Sorry for the noise. (Although if it's temporary storage, we might want to consider either allocating it directly on the stack, if the range is reasonably small, or using the temporary buffer facility, __rw_tmpbuf()). Martin