Rule A2-10-5 states: Regardless of scope, no identifier with static storage duration should be reused across any source files in the project. Are cases where an identifier is reused as a member non-compliant with this rule? In particular, the case where an operator function is defined as a global and a member function.
Code:
struct S
{
void operator<<(S&) {}
void f1(int par) {}
};
namespace N
{
void operator<<(int i, S&) {} // Is compliant or non-compliant?
void f1(int par) {} // Is compliant or non-compliant?
}
