[PATCH v3] Provide a C++ version of iseqsig

Florian Weimer fweimer@redhat.com
Sat Nov 18 12:18:00 GMT 2017


On 11/17/2017 06:25 PM, Gabriel F. T. Gomes wrote:
>> Would these two expressions have the same types, assuming _T1 and _T2
>> are the template parameters from the iseqsig definition?
>>
>>    __MATH_EVAL_FMT2 (__x, __y)
>>    __MATH_EVAL_FMT2 (_T1 (), _T2 ())
>>
>> I believe the second expression would be safe to evaluate, so it could
>> be used to select a suitable inline function.  This would then work with
>> any C++ version.

> Do you mean that I should go back to the first version of the patch (that
> worked with function overloading and had a third parameter)?

I do not have a strong preference here.  I'm fine with the use of 
decltype/__typeof as well.  I just wanted to point out this other 
solution in case we need it at some point.

Thanks,
Florian



More information about the Libc-alpha mailing list