We recommend using Visual Studio 2017

Compiler Error C2833

 

The latest version of this topic can be found at 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  

Show: