[libcxx-commits] [libcxx] [libc++] Avoid -Wzero-as-null-pointer-constant in operator<=> (PR #79465)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 25 08:46:17 PST 2024
https://github.com/cor3ntin commented:
Thanks a lot for working on this.
I like this approach a lot!
Honestly I don't understand the "literal" requirement knowing it's unimplementable without compiler magic (at least not in a way that gives a good user experience).
And I don't like that this wording introduces UB into something that ought to be compile-time checked. Maybe this is LWG issue material. WDYT?
I would rather go with your solution than a magic attribute if we can avoid. (the magic attribute would only have an extremely narrow use case)
https://github.com/llvm/llvm-project/pull/79465
More information about the libcxx-commits
mailing list