Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 35447 invoked from network); 17 May 2006 15:21:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2006 15:21:17 -0000 Received: (qmail 57791 invoked by uid 500); 17 May 2006 15:21:17 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 57775 invoked by uid 500); 17 May 2006 15:21:16 -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 57764 invoked by uid 99); 17 May 2006 15:21:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 08:21:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of AntonP@moscow.vdiweb.com designates 195.210.189.132 as permitted sender) Received: from [195.210.189.132] (HELO exmsk.moscow.vdiweb.com) (195.210.189.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 08:21:14 -0700 Received: from [10.11.0.132] ([10.11.0.132]) by exmsk.moscow.vdiweb.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 May 2006 19:20:51 +0400 Message-ID: <446B3F4F.9030902@moscow.vdiweb.com> Date: Wed, 17 May 2006 19:20:47 +0400 From: Anton Pevtsov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: Re: test for lib.string.swap Content-Type: multipart/mixed; boundary="------------050500030306050405090301" X-OriginalArrivalTime: 17 May 2006 15:20:51.0445 (UTC) FILETIME=[7B84B250:01C679C5] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------050500030306050405090301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Martin, I updated all tests to use new macro DEFINE_STRING_TEST_DISPATCH and allocator. The diff file is here: http://people.apache.org/~antonp/stdcxx05172006/ Martin Sebor wrote: > <>PS I noticed that the --no-xxx/--enable-xxx command line options don't > <>quite control the overloads they should. I haven't looked into it very > closely yet except for adding a missing "-enable-xxx" > string. Are you > seeing the same thing on your end? > Yes. The cause is the missed option "-no-self-ref". The diff file with fix attached. I have a question about UserAlloc: how can I instantiate two different allocators (i.e. allocators which have different ids)? It looks like all allocators in the same scope will have the same id. Thanks, Anton Pevtsov > <>-----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com] > Sent: Wednesday, May 17, 2006 07:26 > To: stdcxx-dev@incubator.apache.org > Subject: Re: test for lib.string.swap > > > Anton Pevtsov wrote: >> Martin, I added several test cases to verify the swap with temporary >> string and committed the test: >> http://svn.apache.org/viewcvs?rev=406940&view=rev > > Great, thanks! >> >> I plan to enhance the test to exercise the function with unequal >> allocators. > > Okay. I've done some work on the user-defined allocator support but I'm not there yet. I would like to simplify the checking of the allocator (and traits) member function calls (as well as the throwing of exceptions) and avoid the conditional logic in all the tests but I need to think about it some more. Btw., I changed UserAlloc to invoke the operator_new() helper function instead of (the replaceable) operator new() so that we can unconditionally (i.e., on all platforms) take advantage of the memory leak detection and exception throwing features. That also still needs a bit of work. I've started modifying the replace test as a starting point. Martin PS I noticed that the --no-xxx/--enable-xxx command line options don't quite control the overloads they should. I haven't looked into it very closely yet except for adding a missing "-enable-xxx" string. Are you seeing the same thing on your end? PPS I realize that there will likely be some overlap or conflicts between what you've been working on and my today's changes. I hope they're not too difficult to resolve. --------------050500030306050405090301 Content-Type: text/plain; name="21.strings.cpp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="21.strings.cpp.diff" Index: 21.strings.cpp =================================================================== --- 21.strings.cpp (revision 407185) +++ 21.strings.cpp (working copy) @@ -917,6 +917,7 @@ "|-no-exceptions# " "|-no-exception-safety# " + "|-no-self-ref# " "|-no-void# " "|-no-ptr# " --------------050500030306050405090301--