C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C2539
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2539
 
     'new' : 'identifier' : no default constructor to initialize array
     of objects
 
     A default constructor was not available to initialize an array of
     objects of the specified class, structure, or union.
 
     Initializing an array of objects requires a default constructor.
     The default constructor is called separately for each object in
     the array.
 
     This error can be caused by not defining a default constructor.
     If any constructor is defined, then the compiler will not
     generate a default constructor. A default constructor (one that
     can be called with no parameters) must be explicitly defined in
     this case.
                                    -♦-