Export (0) Print
Expand All
Expand Minimize

Compiler Error C2800

Error Message

'operator operator' cannot be overloaded

The following operators cannot be overloaded: class member access (.), pointer to member (.*), scope resolution (::), conditional expression (? :), and sizeof.

The following sample generates C2800:

// C2800.cpp
// compile with: /c
class C {
   operator:: ();   // C2800
};

Community Additions

ADD
Show:
© 2014 Microsoft