Compiler Error C2106

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

'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: