|
-
April 21st, 2002, 01:00 AM
#1
How come I get compiler errors when using the STL inside a class?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|