Compiler Error C2203

delete operator cannot specify bounds for an array

The delete operator can only delete an entire array; it cannot delete parts or specific members of the array. This error is generated only with the /Za ANSI-compatibility option.

This was not an error in C++ 2.0 but is an error in C++ 2.1.

The following statement generates this error:

delete [4] ArrayOfObjects;   // error