Compiler Error C2833
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C2833

'operator operator' is not a recognized operator or type

The word operator must be followed by an operator that you want to override or a type you want to convert.

For a list of the operators that you can define in a managed type, see User-defined Operators.

The following sample generates C2833:

// C2833.cpp
// compile with: /c
class A {};

void operator ::* ();   // C2833
void operator :: ();   // OK
© 2016 Microsoft