stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: test for 21.strings.capacity
Date Sun, 05 Mar 2006 01:02:24 GMT
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

Mime
View raw message