From stdcxx-dev-return-1039-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Sun Mar 05 00:57:51 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 73614 invoked from network); 5 Mar 2006 00:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Mar 2006 00:57:51 -0000 Received: (qmail 3089 invoked by uid 500); 5 Mar 2006 00:58:38 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 3073 invoked by uid 500); 5 Mar 2006 00:58:37 -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 3062 invoked by uid 99); 5 Mar 2006 00:58:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 16:58:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2006 16:58:37 -0800 Received: from bco-exchange.bco.roguewave.com (bco-exchange.bco.roguewave.com [172.19.31.48]) by moroha.quovadx.com (8.13.4/8.13.4) with ESMTP id k250vaVH031028 for ; Sun, 5 Mar 2006 00:57:39 GMT Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id F5YGRSRF; Sat, 4 Mar 2006 17:57:07 -0700 Message-ID: <440A38A0.4040506@roguewave.com> Date: Sat, 04 Mar 2006 18:02:24 -0700 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: test for 21.strings.capacity References: <44086C71.6090207@moscow.vdiweb.com> <440A0F89.2020201@roguewave.com> In-Reply-To: <440A0F89.2020201@roguewave.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Martin Sebor wrote: > Anton Pevtsov wrote: > >> The attached file contains the test for the basic_string methods >> described in 21.strings.capacity. >> Here the same to 27.stringbuf.virtuals schema is used. But I think we >> need to implement our own allocator class for the test purposes to >> strictly test some methods (max_size, capacity). Also may be useful to >> develop some analogue of the algorithms tests X class to be used instead >> of char and wchar_t (according to the standard here may be any POD >> type). Martin, what do you think about this? > > > I agree. Exercising the template with user-defined template arguments > in addition to the default ones is important. The header file named > mychar.h contains a user-defined character type and traits class that > was designed for this purpose. The header myallocator.h defines > a custom allocator that we could use. We need to port these headers > to the new driver first (it should be pretty easy). I also want to > rename them to follow the rw_xxx.h convention. I just committed the rw_char.h header: http://svn.apache.org/viewcvs?rev=383236&view=rev Let me know how it works out for you. Martin