Simplify _Rb_tree instantiation

Ville Voutilainen ville.voutilainen@gmail.com
Fri May 25 19:19:00 GMT 2018


On 25 May 2018 at 22:16, Jonathan Wakely <jwakely@redhat.com> wrote:
>> Why is this patch removing _Compare() calls? That changes the
>> initialization
>> of _Compare from value-initialization to default-initialization, which
>> is a breaking change.
>
>
> The _Rb_tree_key_compare base class will still value-initialize it:
>
>      _Rb_tree_key_compare()
>      _GLIBCXX_NOEXCEPT_IF(
>         is_nothrow_default_constructible<_Key_compare>::value)
>      : _M_key_compare()
>      { }

Okay, no problem then.



More information about the Libstdc++ mailing list