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.
C4150
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 2) C4150
 
     deletion of pointer to incomplete type 'type'; no destructor
     called
 
     The delete operator was called to delete the given type, which was
     declared but not defined. The compiler was unable to find any
     destructors for the given type.
 
     Make sure that the class, structure, or union is defined before
     using the delete operator.
 
     The following example generates this warning:
 
          class  IncClass;
          void   NoDestruct( IncClass* pIncClass )
                 {
                 delete pIncClass;
                 }
                                    -♦-