C++ : const reference to local object
<pre><code>const std::string s1 = "abc";
const std::string &amp; s2 = "abc";
</code></pre>

<p>Is the definition of <code>s2</code> legal? If so, what is the difference between between <code>s1</code> and <code>s2</code>?</p>

<p>Thanks.</p>
