Compiler Error C2088
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2088.
operator' : illegal for 'class-key'
The operator was not defined for the structure or union. This error is only valid for C code.
The following sample generates C2088 three times:
// C2088.c
struct S {
int m_i;
} s;
int main() {
int i = s * 1; // C2088
struct S s2 = +s; // C2088
s++; // C2088
}
Show: