[libcxx-commits] [libcxx] [libc++] Avoid -Wzero-as-null-pointer-constant in operator<=> (PR #79465)

Martin Hořeňovský via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 2 13:20:22 PST 2024


horenmar wrote:

After discussion with @cor3ntin, I realized that the example in my earlier comment, 
https://godbolt.org/z/KsP56vbs6 would work if the `operator()` was made constexpr (thanks to P2564R3). See e.g. https://godbolt.org/z/nKv5Es68G

This solves my issue with the change.

-------

I am not particularly happy about not being able to SFINAE over this though.

https://github.com/llvm/llvm-project/pull/79465


More information about the libcxx-commits mailing list