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.
C4156
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 2) C4156
 
     deletion of an array expression without using the array form of
     'delete'; array form substituted
 
     Deletion of an array by the non-array form of 'delete' is
     undefined. The compiler used translated the expression to use
     the array form of 'delete'.
 
     This warning is generated only when the Microsoft extensions
     (/Ze) are enabled.
 
          T (*array)[ 10 ] = new T[ 5 ][ 10 ];
          delete array;     // warning-- changed by compiler to
                            //   "delete [] array;"
                                    -♦-