list< T >::iterator or syntax error?
<p>I'm currently getting the following compile errors:</p>

<pre><code>In function 'int main()':
error: expected primary-expression before '&gt;' token
error: missing template arguments before 'i'
error: expected ';' before 'i'
error: 'i' was not declared in this scope
</code></pre>

<p>I've highlighted the line the first error flags on in the code block below:</p>

<pre><code>// test highscoresfilemanager reading &amp; writing
/*
HighScorePair paira("holly", 10);
HighScorePair pairb("carl", 20);
*/
list&lt; HighScorePair &gt; list;
//list.push_back(paira); list.push_back(pairb);
HighScoresFileManager::GetInstance()-&gt;ReadFileToList(list);
list&lt; HighScorePair &gt;::iterator i; //ERROR FLAGS HERE ODDLY
for(i = list.begin(); i != list.end(); ++i)
   std::cout &lt;&lt; (*i).playerName &lt;&lt; " " &lt;&lt; (*i).playerScore &lt;&lt; std::endl;
</code></pre>

<p>I left in some commented out text I was using to test something previously because I'm certain that that commented out text works perfectly and if it works I don't see why the new code I've added wouldn't work, I'm not using any new classes or anything, I've just tried to get an iterator setup.</p>

<p>I feel quite rude as I think I'm basically asking someone to check my syntax, I keep reading over it and thinking I must be missing a colon somewhere or something but I just can't see what the issue is! A new eye would be greatly appreciated! I appreciate you might want more code (which I can provide) but like I said if the stuff commented out worked then I <em>think</em> the new code should to.</p>
