Is passing const reference to a temporary string object safe in C++?
<p>Consider function f</p>

<pre><code>void f(const std::string&amp; s) {
    ...
}
</code></pre>

<p>Is it safe to call f with a fixed string like the following:</p>

<pre><code>f("abc");
</code></pre>
