https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101485

--- Comment #12 from Jan Schultke <janschultke at googlemail dot com> ---
On a language evolution note, https://wg21.link/P2825 would let you detect
whether an equality comparison for enumerations is overloaded by checking
whether

> declcall(E{} == E{})

... is well-formed. If this makes it into C++26, the solution could be
broadened to all enumerations robustly.

Reply via email to