Compiler Error C2819 (Windows CE 5.0)
type 'type' does not have an overloaded member 'operator ->'
You need to define operator->() to use this pointer operation.
The following example shows how this error might occur.
class A {
public:
int i;
};
class B {
};
void C(B j)
{
j->i; // error C2819
}
The following list shows a possible solution for this error.
The following code fixes the problem:
class B {
A* pA;
public:
A* operator->()
{
return pA;
}
};
Send Feedback on this topic to the authors