C1836: Integer-operand expected

[ERROR]

Description

The unary (~) operator was used with an illegal operand type.

Example
  float f= ~1.45;

  
Tips

There must be an operand of integer type for the unary (~) operator.