This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Simplify _Rb_tree instantiation
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.