Quote:
Originally Posted by StainlessS
The [] bit causes it to call destructor on each element of the array.
|
That was the answer! Thanks. Not that it needs to cause destruction of each element, but it seems that syntax is required if new was used to create an array with [].