You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For ROOT 6.27 (LCG dev23 nightly slot) I see a wrong overload resolution for pair of functions that takes argumentof type double and std::complex<double>. The complex veruison of function is invoked, whle double version is ignored:
I would expect the proper overleoad resolution: the double function is inviked for double argument
and std::complex<double> version is invoked for the complex argument
The first line demonstrates the problem:
here I expect to obtain double value instead of complex.
For both argument type, std::complex<double> version of the function is invoked
Hi @VanyaBelyaev ,
Thanks for reaching out! I can't take a look at this right now, but I know the place where overload resolution happens and it is not the first time that I see this unexpected behaviour from cppyy. I assign this to myself, will let you know when I have news.
Describe the bug
For ROOT 6.27 (LCG dev23 nightly slot) I see a wrong overload resolution for pair of functions that takes argumentof type
double
andstd::complex<double>
. The complex veruison of function is invoked, whledouble
version is ignored:see here
Expected behavior
I would expect the proper overleoad resolution: the
double
function is inviked fordouble
argumentand
std::complex<double>
version is invoked for thecomplex
argumentTo Reproduce
see the gist here
Setup
x86_64-centos7-gcc12-opt
platformAdditional context
The text was updated successfully, but these errors were encountered: