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.
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.
                                    -♦-