Operator declaration must be one of: +,-,*,\,/,^, &, Like, Mod, And, Or, Xor, Not, <<, >>...

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

You can declare only an operator that is eligible for overloading. The following table lists the operators you can declare.

TypeOperators
Unary+, -, IsFalse, IsTrue, Not
Binary+, -, *, /, \, &, ^, >>, <<, =, <>, >, >=, <, <=, And, Like, Mod, Or, Xor
Conversion (unary)CType

Note that the = operator in the binary list is the comparison operator, not the assignment operator.

Error ID: BC33000

To correct this error

  1. Select an operator from the set of overloadable operators.

  2. If you need the functionality of overloading an operator that you cannot overload directly, create a Function procedure that takes the appropriate parameters and returns the appropriate value.

Operator Statement
Operator Procedures
How to: Define an Operator
How to: Define a Conversion Operator
Function Statement

Show: