Quote Originally Posted by matsp View Post
Seeing as you need to have a car to read in the value anyways, you may just as well use the "this" pointer that is already there. Is Car::Read a static function? If not, it is being passed "this" as well as car, so if you do car.Read(... car ...) then you are effectively passing car along twice - once as this, and second as a parameter. Seems unnecessary, and there's no purpose (or advantage) to having a Car reference parameter to a function that requires to have a Car object to be called. Since "simpler is better", this gives the advantage to the model that anon is suggesting.

--
Mats
Oops, i took it for granted that you'll see the title of my post...

For this program, which would you recommend and why (advantages)?
[vector vs dequeue vs maps]