Compiler Error C2612 (Windows CE 5.0)
trailing ',' illegal in base/member initializer list
A comma appears after the last base or member in an initializer list.
The following example shows ways this error might occur.
class A
{
public:
int i;
A( int ia ) : i( ia ), {}; // error, extra comma
};
class B
{
public:
int i;
B( int ib ) : i( ib ) {}; // OK
};
Send Feedback on this topic to the authors