编译器错误 C2106

“operator”:左操作数必须为左值

运算符必须有一个左值作为其左操作数。

以下示例生成 C2106:

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