Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 621 Bytes

compiler-error-c2657.md

File metadata and controls

26 lines (21 loc) · 621 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2657
Compiler Error C2657
11/04/2016
C2657
C2657
f7cf29a9-684a-4605-9469-ecfee9ba4b03

Compiler Error C2657

'class::*' found at the start of a statement (did you forget to specify a type?)

The line began with a pointer-to-member identifier.

This error can be caused by a missing type specifier in the declaration of a pointer to a member.

The following sample generates C2657:

// C2657.cpp
class C {};
int main() {
   C::* pmc1;        // C2657
   int C::* pmc2;   // OK
}