此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“function”:静态成员函数没有“this”指针
static 成员函数尝试访问 this。
static
this
下面的示例生成 C2671:
// C2671.cpp struct S { static S* const func() { return this; } // C2671 };
此页面是否有帮助?