I suppose, CheckValidInput is a function returning an object (which might be a class of yours).

On the right sight of the operator, you have something that is is type bool. How should the compiler...