title: expected template name before '<' token
body: <p>I am a newbie to C++. Trying to port a Windows-based program to linux. The platform I use is Ubuntu 13.03. The compiler is g++. </p>
  
  <p>Here is the problematic code.</p>
  
  <pre><code>class CMapIDNames : public map&lt; IDKey, string, CIDKeyLess &gt;
  {
  } mapOfIDNames;
  </code></pre>
  
  <p>The errors are:</p>
  
  <blockquote>
    <p>error: expected template-name before ‘&lt;’ token</p>
  </blockquote>
  
  <p>Tried to include <code>&lt;functiontal&gt;</code>, and <code>namespace::std</code>, does not help.</p>