Compiler Error C2612
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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 {
public:
int i;
A( int ia ) : i( ia ) + {}; // C2612
};
Show: