PVectors in Class Objects

Thanks for the reply, I thought it might be something to that effect. If you look at the code I posted, you’ll see ‘temp_vec’ making a copy, which, when uncommented,.made it work fine. I’ll try the method you recommended and see how it goes.
As I understand your reply, when I referenced a subtraction from the original vector, the result of the subtraction was stored in the original vector. I’ll have to chew on that for a bit, but I think I see what you mean.

1 Like