Hello everyone. I was just wondering why I have been getting compiler errors when I use the STL container classes (such as list) inside my own class definition.

This is a really cut down version of what I have...


#include <list>
#include "Button.h" //my Button class header

class Screen
{
public:
//Stuff Cut Out
private:
list<Button*> pButtonList;
//More stuff cut
};




So, basically, I just want to have a list of Button class pointers, but for some reason it wont get past compiling. Thanks in advance for any help.