if I use member initialization list in my constructor of a class that has char*
in it, does it copy the value to a new allocated memory or just points the pointer on the same value?
ex.
MyString::MyString(const MyString & other) : m_str(other.m_str) {}
will this be fine or should I run cell by cell to copy the info?
EDIT: just to clarify the question I changed a line.