title: Template friend error, error: template argument required for 'class LinkedList'
body: <p>Hi I am tryna friend a class linkedlist in iterator but idk how to do it with templates</p>
  <pre><code>class Iterator{
      private:
          node&lt;T&gt;* v;
  
      public:
          Iterator(node&lt;T&gt;* u){
              v = u;
          }
  
          T&amp; operator*(){
              return v-&gt;element; 
          }
          friend class LinkedList;
  
  
  };
  
  template &lt;class T&gt;
  class LinkedList{
      public:
          node&lt;T&gt;* head;
          node&lt;T&gt;* tail;
  }
  </code></pre>
  <p>I keep getting an error</p>
  <pre><code>doubleLinkedList.cpp: In instantiation of 'class Iterator&lt;int&gt;':
  doubleLinkedList.cpp:214:26:   required from here
  doubleLinkedList.cpp:35:18: error: template argument required for 'class LinkedList'
           node&lt;T&gt;* v;
                    ^
  </code></pre>
  <p>I have tried alot of things like i putted a template  on top of friend argument but nothing works</p>