C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2351
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2351
 
     obsolete C++ constructor initialization syntax
 
     A direct base class was not named in the constructor.
 
     The new-style initialization list for a constructor member
     requires each direct base class to be explicitly named, even if
     it is the only base class in the list.
 
     The following is an example of this error:
 
          class B
          {
          public:
             B();
             B( int );
          };
 
          class D : public B
          {
          public:
             D( int i ) : ( i ) {}   // error, B was not named
             D( int i ) : B( i ) {}  // OK
          };
                                    -♦-