[libcxx-commits] [libcxx] [libc++] Fix acceptance of convertible-to-{float, double, long double} in std::isfinite() (PR #98841)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 15 02:18:54 PDT 2024
AngryLoki wrote:
Fails in gcc test... Looks like std::isnan `_LIBCPP_PREFERRED_OVERLOAD` also never worked in gcc too and it was not covered with tests. I guess it is possible to implement in in gcc (https://godbolt.org/z/vcrGWzcvj). But I don't know if this level of complication is needed. libstdc++ has no such thing as "preferred overload" and just fails with `call to 'isfinite' is ambiguous` when there are multiple user-defined conversion functions.
https://github.com/llvm/llvm-project/pull/98841
More information about the libcxx-commits
mailing list