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.
  
 
 C2548
                                             ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2548
 
     'identifier1::identifier2' : missing default parameter for
     parameter 'identifier3'
 
     A parameter was missing in a default parameter list.
 
     If a default parameter is supplied anywhere in a parameter list,
     then all subsequent parameters on the right side of the default
     parameter must also be defined.
 
     The following is an example of this error:
 
          void func( int = 1, int, int = 3);  // error
          void func( int, int, int = 3);      // OK
          void func( int, int = 2, int = 3);  // OK
                                    -♦-