So my instructor handed out some code that I believe does not work at all and I want to get some clarification on it. He used this in his hand out notes (it implies that this is correct).
template<class T>
class State
{
public:
virtual void Enter(T*)=0;
virtual void Execute(T*)=0;
virtual void Exit(T*)=0;
virtual ~State(){};
};
I can see what he is trying to do but I believe the compiler will not like it at all. Can anyone help explain why this does or does not work.