vector of pointer
<p>I just wonder what's wrong with vector of pointer. some of my friend recommend me to use list instead of vector. will this cause a problem:</p>

<pre><code>vector&lt;Fruit*&gt; basket;
basket.push_back(new Apple());
basket.push_back(new Orange());
vector&lt;Fruit*&gt; temp;
temp.push_back(basket[1]);
</code></pre>

<p>If I delete vector temp, do I destroy the basket[1] object too? if not, what's the problem with using vector of pointer?</p>
