someone please help

.................................
Last edited on
If you want to overload the += operator, you have to overload + operator as well.

Read here: http://stackoverflow.com/questions/4421706/operator-overloading
closed account (o1vk4iN6)
That's prob one of the worst + operator overloads I've ever seen. You shouldn't be returning a reference and you shouldn't be modifying v1. Anyway the += operator only takes one parameter just like the = operator as you have the destination which should be "this".
Topic archived. No new replies allowed.