title: Question about shallow copy in C++
body: <p>Say I have a struct "s" with an int pointer member variable "i".  I allocate memory on the heap for i in the default constructor of s.  Later in some other part of the code I pass an instance of s by value to some function.  Am I doing a shallow copy here?  Assume I didn't implement any copy constructors or assignment operators or anything for s... just the default constructor.</p>