Posts by André Godoy • 1 point
1 post
-
0
votes1
answer57
viewsQ: Accessing methods of a class on a vector of pointers
All right, I have a Package class with a public method double calculate_cost(). I need to create a std::map<string, std::vector<Package*>> where I can iterate through the array and save…