Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 631 Bytes

compiler-error-c2637.md

File metadata and controls

26 lines (21 loc) · 631 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2637
Compiler Error C2637
11/04/2016
C2637
C2637
58d94447-eb96-4d8f-a690-dd78d322462e

Compiler Error C2637

'identifier' : cannot modify pointers to data members

A pointer to a data member cannot have a calling convention. To resolve, either remove the calling convention or declare a pointer to member function.

The following sample generates C2637:

// C2637.cpp// compile with: /cstructS {}; int __stdcall S::*pms1; // C2637// OKint S::*pms2; int (__stdcall S::*pms3)(...);
close