On an array like this:
why does clear() not call the destructor of the MyClass?
while in this case:
it does?
On an array like this:
why does clear() not call the destructor of the MyClass?
while in this case:
it does?
Pointers don’t have destructors.
I think you want to use OwnedArray.