I have a class Character in my program and I want to have three linked lists of Characters as members of that class.
class Character
{
...
std::list <Character> one;
std::list <Character> two;
std::list <Character> three;
};
This will not work, however, because the Character class isn't complete (it goes into an STL file when debugging and gives me an error).
I have tried a std::list of void * to try to push_back Characters later, but that doesn't work. I have also tried void *s to try to typecast them to std::list <Character> in the constructor, didn't work either. Anybody have any ideas on how I can do this? Thanx...
-Joe