Compiler Error C2612
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C2612

trailing 'char' illegal in base/member initializer list

A character appears after the last base or member in an initializer list.

The following sample generates C2612:

// C2612.cpp
class A
   int i;
   A( int ia ) : i( ia ) + {}; // C2612

int main()
© 2016 Microsoft