Compiler Error C2106
'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
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'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
}