编译器错误 C2673

“function”:全局函数没有“this”指针

全局函数尝试访问 this

以下示例生成 C2673:

// C2673.cpp
int main() {
   this = 0;   // C2673
}