Export (0) Print
Expand All
Expand Minimize

Compiler Error C2106

Error Message

'operator' : left operand must be l-value

The operator must have an l-value as its left operand.

The following sample generates C2106:

// C2106.cpp
int main() {
   int a;
   1 = a;   // C2106
   a = 1;   // OK
}

Community Additions

ADD
Show:
© 2014 Microsoft