C28309

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

warning 28309: <parameter_name>: Annotation operands must be integer/enum/pointer types. Void operands and C++ overloaded operators are not supported. Floats are approximated as integers. Types: <typelist>.

You’ve tried to use a void or a function in an annotation expression, and Code Analysis can't handle it. This error typically occurs when an operator== that's implemented as a function is used, but other cases may also occur. Examine the types in <typelist> for clues about what’s wrong.