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 C2760

syntax error : expected 'name1' not 'name2'

A casting operator is used with an invalid operator.

Example

class B { };
class D : public B {  };

void f(B* pb)
{
    D* pd1 = static_cast<D*>(pb); 
    D* pd2 = static_cast<D*>=(pb); // error
    D* pd3 = static_cast<D*=(pb);  // error
}