title: Is the copy constructor, assignment operator, or both used here?
body: <p>I have this snippet of code:</p>
  
  <pre><code>CFoo::CFoo()
  {
      InitializeCriticalSection( &amp;m_CriticalSection );
      m_IsInitialized = FALSE;
      m_CBar = CBar(15);
  }
  </code></pre>
  
  <p>When the instance of CBar is constructed on the right hand side of the third line of CFoo's constructor, is the copy constructor invoked to move it to m_CBar, or is only the assignment operator invoked by the compiler?</p>