What is the importance of returning reference in operator overloading
<p>Can anybody explain why do you need to return a reference while overloading operators
e.g. </p>

<pre><code>friend std::ostream&amp; operator&lt;&lt; (std::ostream&amp; out, const std::string&amp; str)
</code></pre>
