Feb 10, 2015 at 9:39am
|
customer->GetInventory().erase(customer->GetInventory().begin()+choice);
|
"customer" is a class.
"Inventory" is a class.
"GetInventory()" returns a vector<Inventory>.
It would be helpful if someone could explain to me why it returns a "vector erase iterator outside of range" error. Thank you in advance. :)
Last edited on Feb 10, 2015 at 9:40am