"ISO C++ forbids declaration of 'list' with no type" error
<p>I keep getting the following errors on every line containing <code>list&lt;string&gt;</code> below:</p>

<ul>
<li><code>ISO C++ forbids declaration of 'list' with no type</code></li>
<li><code>expected ';' before '&lt;' token</code></li>
</ul>

<p></p>

<pre><code>#ifndef __REGNAMEGENERATOR_H
#define __REGNAMEGENERATOR_H

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string&gt;
#include &lt;iostream&gt;
#include &lt;sstream&gt;

#define Max_reg_Num 1000

using namespace std;

class RegNameGenerator{
private:
    int intRegNumber;
    int realRegNumber;
    list&lt;string&gt; UsedIntReg; // error
    list&lt;string&gt; UsedRealReg; // error

public:
    RegNameGenerator();
    ~RegNameGenerator();
    string generateIntReg();
    string generateRealReg();
    list &lt;string&gt; getUsedIntReg(); // error
    list &lt;string&gt; getUsedRealReg(); // error
    int getIntRegNum();
    int getRealRegNum();
};

#endif
</code></pre>