title: Copy constructor and = operator overload in C++: is a common function possible?
body: <p>Since a copy constructor</p>
  
  <pre><code>MyClass(const MyClass&amp;);
  </code></pre>
  
  <p>and an = operator overload</p>
  
  <pre><code>MyClass&amp; operator = (const MyClass&amp;);
  </code></pre>
  
  <p>have pretty much the same code, the same parameter, and only differ on the return, is it possible to have a common function for them both to use?</p>