[libcxx-commits] [libcxx] [libc++] Constrain additional overloads of `pow` for `complex` harder (PR #110235)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 25 02:57:22 PDT 2024
frederick-vs-ja wrote:
> @frederick-vs-ja Do you know what other implementations promise w.r.t. `std::complex<UserDefined>`? Does it work with other implementations? If so, perhaps it would be worth changing the spec to require that it does.
I don't think there's any implementation promising this. But the example works with libstdc++ because its calculation for promoted FP type is SFINAE-friendly...
https://github.com/llvm/llvm-project/pull/110235
More information about the libcxx-commits
mailing list