I have problem with a stack of pointers. I have stack of pointers named ob1
stack<object*> ob1;
then I create some pointer to object and pushed into stack. when I want retrieve these pointer from stack I use this method;
object * tag;
tag = new object();
tag = ob1.pop();
but I get "error C2440: cannot convert void to object*
"
I am confuse what is wrong.
I would appreciate for any help.