编译器错误 C2637
“identifier”:不能修改指向数据成员的指针
指向数据成员的指针不能有调用约定。 要解决此问题,请删除调用约定或声明指向成员函数的指针。
以下示例生成 C2637:
// C2637.cpp
// compile with: /c
struct S {};
int __stdcall S::*pms1; // C2637
// OK
int S::*pms2;
int (__stdcall S::*pms3)(...);
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈