Re: [v3] C++11 allocator reqs for vector in debug profile mode

2011-11-09 Thread Jonathan Wakely
On 9 November 2011 10:19, Paolo Carlini wrote: Hi I checked, and it's currently broken :) We do the wrong thing for allocators with propagate_on_container_swap==true. I think the fix might be as simple as constructing the new container with a copy of the old one's allocator, so even if it

[v3] C++11 allocator reqs for vector in debug profile mode

2011-11-08 Thread Jonathan Wakely
This adds C++11 allocator support to vector in debug mode and profile mode. It also fixes an unrelated bug in __profile::vector::push_back(_Tp) * include/bits/stl_vector.h (vector::_Alloc_traits): Make private. * include/debug/vector: Add allocator-extended constructors, ensure