Compiler Warning (level 3) C4280

'operator –>' was self recursive through type 'type'

Your code contains an incorrect use of operator–>. Check your code to make sure operator–> does not call itself.

The following code shows the problem:

struct A {
   int z;
   A& operator ->();
};

void f(A y) {
   int i = y->z; // warning C4280
}