Compiler Error C2106
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 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
}
Show: