Spectromixer
Member
I'm stuck on a really annoying and probably simple problem. Since I am new to C++, I am unable to figure out how exactly to turn this copy constructor into a deep copy instead of a shallow one, specifcally because when I test it with pointers the copy will always be a shallow copy.
I have tried changing the statement in the loop to be
m_Data = new element(*original.m_Data);
and that doesn't seem to work.
I have tried changing the statement in the loop to be
m_Data = new element(*original.m_Data);
and that doesn't seem to work.
sorry for the shameless question