error C4018 with vector size() in c++
<p>im getting a warning when i use the function .size() with vectors in c++
Heres a sample code:</p>

<pre><code>vector&lt;classname*&gt; object;
object.push_back(new classname2);

for(int i=0;i&lt;object.size();i++){
....}
</code></pre>

<p>i get the warning:</p>

<blockquote>
  <p>warning C4018: '&lt;' : signed/unsigned mismatch</p>
</blockquote>

<p>I'm not allowed to have any errors or warnings in my final code so i need to get rid of this/find an alternative method, how can i get rid of this? </p>
