title: C++ calling a template function from another template function
body: <p>I just tried the following code</p>
  
  <pre><code>class MailBox{
  };
  
   template&lt;typename T&gt;
       void foo(T){
       cout &lt;&lt; "In foo" &lt;&lt; endl;
   }
  
  template&lt;typename T&gt;
   void foo1(T){
       foo(T);
   }
  
   main()
   {
           MailBox m;
           std::vector&lt;MailBox&gt; m1;
  
           foo1(m1);
   }
  </code></pre>
  
  <p>We are getting below error while compilation</p>
  
  <pre><code>test1.cpp: In function âvoid foo1(T)â:
  test1.cpp:15: error: expected primary-expression before â)â token
  </code></pre>
  
  <p>Any idea how to resolve this ?</p>