title: Declaration of template <class __declspec(dllexport) windowclass> giving an error in vs2015
body: <p>We are migrating our projects from vs2005 to VS2015 .In one of the project we are using below template declaration</p>
  
  <pre><code>template &lt;class __declspec(dllexport) WindowClass&gt;
  </code></pre>
  
  <p>In 2005,it is building successfully but in vs2015 getting below error.</p>
  
  <blockquote>
    <p>'WindowClass': illegal type for non-type template parameter 'WindowClass'</p>
  </blockquote>
  
  <p>I am not sure about the use of dllexport inside a template . Anyone know why it is useful and why it is not working in vs2015? </p>