This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RE : Problem with _Hashtable_ebo_helper


On 23 October 2013 19:03, Jason Merrill wrote:
> On 10/23/2013 02:53 AM, frs.dumont@gmail.com wrote:
>>
>> That is indeed an issue. We have to force the 3rd template parameter to
>> true in this context because we are using _Hastable_ebo_helper here only
>> for convenience to access protected default ctor if any. We know that
>> _Hashtable_code_base is not final so it is safe to force true. I'll
>> submit a patch when back home.
>
>
> I assume you mean the following; I'm going to check it in now to avoid
> regressions from my front end patch.  I'm still interested in feedback on my
> proposed change to the default template argument.

Sorry for the delay.  I'm in favour of that change to use inheritance
when the type's not default constructible.  Obviously it only helps
when there's a protected default constructor, not when there's a
private default constructor or no default constructor at all, but
those cases can't work anyway.

The comment and name of the parameter are a little misleading now, as
EBO won't be used for non-empty types, the parameter really means "use
inheritance" after the change, not "use EBO".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]