Why does the code produce garbage value under these circumstances?
I’m trying to simply record a file’s properties by making a vector of objects. It works just fine when the vector is a vector of objects, but when the vector is object pointers, the outcome is a bunch of garbage value.