I have a template class called Stack which I'm trying to inherit from. I do this:
template <class T> class Queue : public Stack
{ };
but the compiler says:
error: expected class-name before '{' token
What's wrong?
I have a template class called Stack which I'm trying to inherit from. I do this:
template <class T> class Queue : public Stack
{ };
but the compiler says:
error: expected class-name before '{' token
What's wrong?