Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 664 Bytes

compiler-error-c2614.md

File metadata and controls

32 lines (26 loc) · 664 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2614
Compiler Error C2614
11/04/2016
C2614
C2614
a550c1d5-8718-4e17-a888-b2619e00fe11

Compiler Error C2614

'class1' : illegal member initialization: 'class2' is not a base or member

Only member or base classes can appear in the initialization list for a class or structure.

Example

The following sample generates C2614.

// C2614.cpp// compile with: /cstructA { int i; A( int ia ) : B( i ) {}; // C2614 B is not a member of A }; structA2 { int B; int i; A2( int ia ) : B( i ) {}; // OK };
close