I have the next question: If I have a class which contains for instance
Class A {
public:
A();
~A();
...
protected:
//Data
std::string str;
std::vector<char> vctChar;
std::vector<std::string> vctString;
}
and I use the DEFAULT C.Ctor and assignement. Suppose I know declare the object and use it for another object as C.Ctor, will the new object will have it own copy of data (string and vectors ?) or it will point to the same one of the first object ?