C2040 Invalid unary inline operator Problem: The expression in question is not specified correctly. Solution: Examine the expression carefully and correct any obvious mistakes. Also, use parentheses to clarify the expression. This increases readability and makes problems more evident.