Name: Anonymous 2010-02-10 13:36
Hey /prog/, I am having some doubts about a class I'm making.
This class has an array of pointers to an struct. To make my life easier, I'm using std::vector for this. My doubt is coming from the assignment operator and copy constructor.
How would I handle both of these? I mean, std::vector has its own assignment operator but I am not sure if this would generate a shallow or deep copy of data which it holds (Which are pointers).
This class has an array of pointers to an struct. To make my life easier, I'm using std::vector for this. My doubt is coming from the assignment operator and copy constructor.
How would I handle both of these? I mean, std::vector has its own assignment operator but I am not sure if this would generate a shallow or deep copy of data which it holds (Which are pointers).