Compiler Error C2760

syntax error : expected 'name1' not 'name2'

A casting operator was used with an invalid operator.

The following is an example of this error:

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
}