编译器错误 C2637

“identifier”:不能修改指向数据成员的指针

指向数据成员的指针不能有调用约定。 要解决此问题,请删除调用约定或声明指向成员函数的指针。

以下示例生成 C2637:

// C2637.cpp
// compile with: /c
struct S {};
int __stdcall S::*pms1;   // C2637

// OK
int S::*pms2;
int (__stdcall S::*pms3)(...);