Hi,
I've got the following problem.
I have a class, Action_base, that is the base class of a template called Action.
Now in another class called Performer I have a constructor that looks like this:
When creating a new Performer I want to pass the Action class (since its base class is Action_base) to the constructor, but the problem is that is says I have an undefined reference and does not seem to treat Action as a sub-class of Action_base.
Something like this:
Any help is appreciated.
Any ideas?
Thanks in advance...
I've got the following problem.
I have a class, Action_base, that is the base class of a template called Action.
Now in another class called Performer I have a constructor that looks like this:
Code:
Performer::Performer(int weight,int age,Action_base* action);
Something like this:
Code:
Performer* p = new Performer(90,190,new Action<Whatever>("jump"));
Any ideas?
Thanks in advance...
Comment