+ 2

Error[Solved]

So I get an error when trying to add an object to my vector. Why? I've tried a few things but I came up with nothing Edit: Nevermind, I fixed it. https://code.sololearn.com/c842MPT0CN64/?ref=app

7th Dec 2019, 1:59 AM
Daniel Cooper
Daniel Cooper - avatar
2 Answers
+ 2
Manual I was storing Product in Cart rather than Product*
7th Dec 2019, 5:44 AM
Daniel Cooper
Daniel Cooper - avatar
+ 1
What was wrong with the code?
7th Dec 2019, 2:27 AM
Manual
Manual - avatar