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.
C2512
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2512
 
     'identifier' : no appropriate default constructor available
 
     No default constructor was available for the specified class,
     structure, or union.
 
     The compiler will supply a default constructor only if
     user-defined constructors are not provided. If you provide a
     constructor that takes a nonvoid parameter, then you must also
     provide a default constructor. The default constructor can be
     called with no parameters, that is, a constructor with default
     values for all parameters.
                                    -♦-