Rvalues vs temporaries
<p>Somebody generalized the statement "Temporaries are <code>rvalues</code>". I said "no" and gave him the following example</p>

<pre><code> double k=3;

 double&amp; foo()
 {
    return k;
 }

 int main()
 {

     foo()=3; //foo() creates a temporary which is an lvalue
 }
</code></pre>

<p>Is my interpretation correct?</p>
