Compiler Error C2546

'operator' : illegal mix of 'void' pointer with pointer to type

The specified operator was called with incompatible pointer types.

This error can be caused by using an arithmetic operator on a void pointer. Pointer arithmetic can only be done with pointers to objects.

If the operator must be used with a void pointer, then the operator can be overloaded. Alternatively, cast the void pointer into a type that can be used with the specified operator.