[v3] add max_size and rebind to __alloc_traits

Paolo Carlini paolo.carlini@oracle.com
Thu Oct 6 01:59:00 GMT 2011


Hi,
> 2011-10-04  Jonathan Wakely<jwakely.gcc@gmail.com>
>
> 	* include/ext/alloc_traits.h (__alloc_traits::max_size): Define.
> 	(__alloc_traits::rebind): Define.
> 	* include/bits/stl_vector.h: Use them.
> 	* testsuite/util/testsuite_allocator.h (SimpleAllocator): Define.
> 	* testsuite/23_containers/vector/allocator/minimal.cc: New.
> 	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
> 	Adjust dg-error line numbers.
> 	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
> 	Likewise.
> 	* testsuite/23_containers/vector/requirements/dr438/
> 	constructor_1_neg.cc: Likewise.
> 	* testsuite/23_containers/vector/requirements/dr438/
> 	constructor_2_neg.cc: Likewise.
>
today I ran the whole testsuite in C++0x mode and I'm pretty sure that 
23_containers/vector/modifiers/swap/3.cc, which is now failing, wasn't a 
couple of days ago (I ran the whole testsuite like that in order to 
validate my std::list changes). When you have time, could you please 
double check? (maybe after all we *do* want it to fail in C++0x mode, 
but I'd like to understand if the behavior changed inadvertently!)

Thanks in advance,
Paolo.



More information about the Libstdc++ mailing list