title: "base operand of ‘->’ has non-pointer type" But It is pointer
body: <p>This is my code.(I simplified this,Normally there were a lot of member functions,but error still same,So I simplified it.)</p>
  
  <pre><code>template &lt;class K,class V&gt;
  class MyMap:public MySet&lt;pair&lt;K, V&gt; &gt;{};
  
  int main(void){
  
      MyMap&lt;int,int&gt; map1;
  
      MyMap&lt;int,int&gt;::MyIterator it;
  
      it=map1.begin();
  
      cout&lt;&lt;it-&gt;first&lt;&lt;endl;
  
      return 0;
  }
  </code></pre>