Hi,
I've been trying to set up a list variable in a C++ header file and I'm getting the error:
Here's the header file code:
The error is caused at the line with red text.
Anyone got any idea why this is so? I'm clueless at the moment.
                
            I've been trying to set up a list variable in a C++ header file and I'm getting the error:
21|error: ISO C++ forbids declaration of 'list' with no type|Here's the header file code:
#ifndef SERVER_H_INCLUDED
#define SERVER_H_INCLUDED
#include "definitions.h"
#include "cinsim.h"
using namespace std;
struct connection
{
    char* UName;
    char* PName;
    byte UCID;
};
class Server
{
    public:
        static CInsim InSim;
        [COLOR="Red"][B]static list<int> Conns;[/B][/COLOR]
        static void SendTiny(byte);
};
#endif // SERVER_H_INCLUDED
The error is caused at the line with red text.
Anyone got any idea why this is so? I'm clueless at the moment.
