Array clear() doesn't call destructor of class?


#1

On an array like this:

why does clear() not call the destructor of the MyClass?

while in this case:

it does?


#2

Pointers don’t have destructors.

I think you want to use OwnedArray.