Compilerfehler C2760

Syntaxfehler: 'Name1' erwartet und nicht 'Name2'

Ein Typumwandlungsoperator wurde mit einem ungültigen Operator verwendet.

Im folgenden Beispiel wird C2760 generiert:

// C2760.cpp
class B {};
class D : public B {};

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