Compiler Warning (level 3) C4281 (Windows CE 5.0)

Send Feedback

'operator –>' recursion occurred through type 'type'

Your code incorrect allows operator–> to call itself.

The following example shows how this message might occur.

struct A;
struct B;
struct C;

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

struct B {
   C& operator->();
};

struct C {
   A& operator->();
};

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.