Well…
Double_node<Type *> *ptr = stack.list.head();
is declaring a variable ptr
which is of type pointer (thanks to the *
) to Double_node<Type *>
while
Double_node<TType *> ptr = stack.list.head();
is declaring a variable ptr
which is a Double_node<TType *>
.
The latter is not a pointer.