title: copy and swap technique uses copy constructor inside assignment operator function
body: <p>I was reading "Effective C++ by Scott Meyers", in which Item 11 is recommending is to use the "copy and swap" technique inside my assignment operator:</p>
  
  <pre><code>Widget&amp; Widget::operator=(const Widget &amp;rhs)
  {
      Widget temp(rhs); // Copy constructor
      swap(temp); //Swap with *this
      return *this;
  }
  </code></pre>
  
  <p>But in Item 12 it is written:</p>
  
  <blockquote>
    <p>It makes no sense to have copy assignment operator call the copy constructor. </p>
  </blockquote>
  
  <p>I think that Item 11 and Item 12 are contradictory. Am I understanding it incorrectly?</p>