Greetings,
I have the following class
class test
{
public:
test():element(NULL), previous(NULL), next(NULL){};
void *element;
test *previous, *next;
};
this works fine: test * a_test
but this crashes: test a_test
does anybody know what it is that i am doing wrong? I am sure its something that has to do with the void pointer, but I dont know what i should do to fix it.
thanks in advance.