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 C2594

'operator' : ambiguous conversions from 'type1' to 'type2'

No conversion from type1 to type2 was more direct than any other. One possible solution is to define or specify an explicit conversion.

The following sample generates C2594:

// compile with /c
struct A{};
struct I1 : A {};
struct I2 : A {};
struct D : I1, I2 {};

A *f (D *p) {
return (A*) (p);   // C2594
// return reinterpret_cast<A*> (p);   // try this instead
}