编译器错误 C2101

常量上的“&”

address-of 运算符 (&) 必须将左值作为操作数

下面的示例生成 C2101:

// C2101.cpp
int main()
{
    int* ptr = &123;   // C2101
}