In C++, if I know a class will satisfy virtual methods, is it possible to modify the below to inherit it directly? Right now the compiler says incomplete types aren't allowed. I could write a wrapper, but is there a direct way?
#include <stack>
template<class T> class MyStack{
public:
virtual T pop()=0;
};
template<class T> class JobStack : public MyStack<T>, public std::stack<T>;
int main()
{
JobStack<int> a;
a.push(1);
a.pop(a);
}