Why can an expression a + b find operator+ defined as a friend inside the class of a and …

from Operator overloading
C++23 intermediate 1 min

Why can an expression a + b find operator+ defined as a friend inside the class of a and b?

Report an error