This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH v3] Provide a C++ version of iseqsig


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


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