title: Specializing template for enum
body: <p>Could anyone tell me why this doesn't work?  </p>
  
  <pre><code>enum CompCriteria{ByKey,ByValue,ByeKeyAndValue};
  
  template&lt;class T&gt;
  struct X;
  
  template&lt;&gt;
  struct X&lt;CompCriteria&gt;
  {
  };
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      X&lt;CompCriteria::ByeKeyAndValue&gt; x;
      return 0;
  }
  </code></pre>