title: C++ Declaring Template <Class T> above int main()
body: <p>I have a template list in my main which has a template class object in it.</p>
  
  <pre><code>List&lt;serviceInfo&lt;T&gt;&gt; priceList;
  </code></pre>
  
  <p>In order for me to get it working, I will have to declare template  above my main </p>
  
  <pre><code>template &lt;class T&gt;
  int main()
  </code></pre>
  
  <p>which will give me the following error:</p>
  
  <blockquote>
    <p>LNK2019: unresolved external symbol <em>main referenced in function
    _</em>_tmainCRTStartup</p>
  </blockquote>