Compiler Error C2668 (Windows CE 5.0)
'function' : ambiguous call to overloaded function
The specified overloaded function call could not be resolved.
The following list shows possible solutions for this error.
- Explicitly cast one or more of the actual parameters.
The following example shows ways this error might occur.
struct A {};
struct B : A {};
struct X {};
struct D : B, X {};
void func( X, X );
void func( A, B );
D d;
void main()
{
func( d, d ); // error, D has an A, B, and X
func( (X)d, (X)d ); // OK, uses func( X, X )
}
Send Feedback on this topic to the authors