Say i have this class:
class Entity
{
private:
std::vector<Component*> _components;
public
Entity(std::vector<Component*>);
};
And i do this:
Entity* entity= new Entity( { new Drawable(), new Transform() ... } );
Entity* clone = new Entity(*entity);
Will the objects that the pointers in _components point to get copied? Or are only the pointers getting copied to clone?