Compiler Error C2299

'name' : globally qualified name illegal as right hand side of operator 'operator'

Only a member of a class, structure, or union used on the right hand side of the specifed member access operator.