Does C++ optimise construction-and-copy into a copy constructor?
<p>Does a C++ compiler automatically convert:</p>

<pre><code>MyObject object2 = object1;
</code></pre>

<p>into</p>

<pre><code>MyObject object2( object1 );
</code></pre>

<p>?</p>

<p>Or does it treat it like:</p>

<pre><code>MyObject object2;
object2 = object1;
</code></pre>

<p>?</p>
