title: Importing explicitly instantiated template class from dll
body: <p>Being a dll newbie I have to ask the allmighty SO about something.</p>
  
  <p>Say I explicitly instantiate a template class like this:</p>
  
  <pre><code>template class __declspec(dllexport) B&lt;int&gt;;
  </code></pre>
  
  <p>How do I use import this templated class again?</p>
  
  <p>I've tried the adding the code below in my .cpp file where I want to use B </p>
  
  <pre><code>template class __declspec(dllimport) B&lt;int&gt;;
  </code></pre>