c++ compiling "error: expected constructor, destructor, or type conversion before '=' token "
<p>Very simple codes located in the same file 'foo.h':</p>

<pre><code>class Xface
{
  public:
    uint32_t m_tick;
    Xface(uint32_t tk)
    {
      m_tick=tk;
    }
}

std::map&lt;uint32_t, Xface*&gt; m;

Xface* tmp;

tmp = new Xface(100);  **//Error**
m[1] = tmp;  **//Error**

tmp = new Xface(200);  **//Error**
m[2] = tmp;  **//Error**
</code></pre>

<p>The error is 
<strong>error: expected constructor, destructor, or type conversion before '=' token</strong>
for every assignment.</p>
