When you return object by reference, when do you need to be worried that the object will be destroyed?
<p>you have the following:</p>

<pre><code>Person&amp; getPersonByName(string name);
</code></pre>

<p>In what circumstances do you need to be worried that the return person from the getPersonByName will be destructed as soon as the method ended so the caller method will work on destructed data?</p>

<p>Thank you</p>
