Previously I had this:
vector<CThing>things;
void Add(const CThing & ins){ things.push_back(ins); }
Now I need to change the declaration because of slicing to:
vector<CThing*>things;
or
vector<unique_ptr<CThing>>;
But I am not sure how to implement the Add function...
I tried:
things.push_back(*ins);
or
things.emplace_back(ins)