std::forward_list optim for always equal allocator

Jonathan Wakely jwakely@redhat.com
Fri Sep 8 16:19:00 GMT 2017


On 28/08/17 21:09 +0200, François Dumont wrote:
>Hi
>
>    Any news for this patch ?
>
>    It does remove a constructor:
>-        _Fwd_list_impl(const _Node_alloc_type& __a)
>-        : _Node_alloc_type(__a), _M_head()
>
>     It was already unused before the patch. Do you think it has ever 
>been used and so do I need to restore it ?
>
>    I eventually restore the _M_head() in _Fwd_list_impl constructors 
>cause IMO it is the inline init of _M_next in _Fwd_list_node_base 
>which should be removed. But I remember Jonathan that you didn't want 
>to do so because gcc was not good enough in detecting usage of 
>uninitialized variables, is it still true ?

Why should it be removed?




More information about the Libstdc++ mailing list