Fwd: Re: [PATCH] PR libstdc++/86127 avoid unnecessary allocator conversions

2018-06-14 Thread Jonathan Wakely
Forwarding to gcc-patches ... On 14/06/18 10:26 +0100, Jonathan Wakely wrote: On 14/06/18 07:45 +0200, François Dumont wrote: > You're still using __gnu_cxx::__alloc_traits for > _Fwd_list_base::_Node_alloc_traits to get the _S_always_equal(). > > So you might perhaps cleanup this part of the

[PATCH] PR libstdc++/86127 avoid unnecessary allocator conversions

2018-06-13 Thread Jonathan Wakely
There is no need to use an allocator of the correct value_type when calling allocator_traits::construct and allocator_traits::destroy. The existing node allocator can be used, instead of constructing a new allocator object every time. There's also no benefit to using __gnu_cxx::__alloc_traits ins