title: What is happening when you assign a pointer to another pointer?
body: <p>Code:</p>
  
  <pre><code>int x = 2;
  int* pointerone = &amp;x;
  int* pointertwo = pointerone;
  </code></pre>
  
  <p>So the address of <code>pointerone</code> is assigned to <code>pointertwo</code>, but is the copy constructor being called and the object that holds the address is copied into the address object of the other pointer, like all the default copy constructors on other types performing a shallow copy. If it is as I expect, how does the copy constructor of a pointer look like?</p>