C++ Pointers, objects, etc
- by Zeee
It may be a bit confusing, but...
Let's say I have a vector type in a class to store objects, something like vector, and I have methods on my class that will later return Operators from this vector.
Now if any of my methods receives an Operator, will I have any trouble to insert it directly into the vector? Or should I use the copy constructor to create a new Operator and put this new one on the vector?