C1038: Cannot be friend of myself

[WARNING]

Description

The friend specifier was applied to a function/class inside the scope resolution of the same class.

Example
  class A {

  
    friend A::f(); //treated by the compiler as "friend 
  f();

  
  };

  
Tips

Do not write a scope resolution to the same class for a friend of a class.