C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C2601
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2601
 
     functions cannot be defined in local classes
 
     A function definition was found in a class definition.
 
     A function cannot be declared as local to a class, structure, or
     union.
 
     The following is an example of this error:
 
          void main()
          {
             class C
             {
                int f() { return 0; }   // error, local function
             };
          }
                                    -♦-