[v3] add max_size and rebind to __alloc_traits

Jonathan Wakely jwakely.gcc@gmail.com
Fri Oct 7 18:46:00 GMT 2011


On 7 October 2011 17:21, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> On 10/06/2011 03:59 PM, Jonathan Wakely wrote:
>>
>> Yep, I haven't looked into it yet but I agree with Daniel's analysis
>> (except that propagate_on_container_swap must be a type, not a static
>> member)
>>
>> We already have separate tests (using propagating_allocator) which
>> test the behaviour for non-equal allocators that don't propogate on
>> container swap, so I see no harm in changing the behaviour of
>> uneq_allocator by adding:
>>
>> typedef true_type propagate_on_container_swap;
>>
> I went ahead and applied the below... a little less noise.

Thanks - is <type_traits> needed there?

I tested that fix but noticed failure in a deque swap test in c++0x
mode, and hadn't investigated that yet to see if it was related.



More information about the Libstdc++ mailing list