Skip to content
Snippets Groups Projects
Verified Commit aeff2bf4 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix GCC 13 warning about ambiguity of operator==() in C++20

In C++20, a==b can also be implicitly rewritten as b==a, assuming
commutativity. But if the operator==(const &) is not declared as const, and is
thus asymmetric, this results in an ambiguity because neither of a==b or b==a
is a better match according to the overload resolution rules.
parent 792aa64e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment