Simple map<> instantiation, I can't compile, please help
<p>Why I can't compile this code?</p>

<pre><code>#include &lt;map&gt;
using namespace std;
class MyTest {
    template&lt;typename T&gt; void test() const;
};
template&lt;typename T&gt; void MyTest::test() const {
    map&lt;string, T*&gt; m;
    map&lt;string, T*&gt;::const_iterator i = m.begin();
}
</code></pre>

<p>My compiler says:</p>

<pre><code>In member function ‘void MyTest::test() const’:
test.cpp:8: error: expected `;' before ‘i’
</code></pre>

<p>What is it about? Many thanks in advance!</p>
