Im learning C++, but i have found a problem that i cant resolve. I have created a vector of smartpointers containing dynamically-created objects of a derived class. Im tryin