NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2593

'operator identifier' is ambiguous

More than one possible operator is defined for an overloaded operator.

Possible solution

Example

struct A {};
struct B : A {};
struct X {};
struct D : B, X {};
void operator+( X, X );
void operator+( A, B );
D d;
void main()
{
   d +  d;         // error, D has an A, B, and X 
   (X)d + (X)d;    // OK, uses operator+( X, X )
}

Possible cause