J
Jun
struct Abstract{
virtual void run() const = 0;
};
template <typename T>
struct S : F{
void run(){}
};
I just want to use as :
Abstract* a = new S<policy_1>(); // doesn't work
I just wanna to know how i could mix the templates with the
traditional abstract class design, thank you in advance.
virtual void run() const = 0;
};
template <typename T>
struct S : F{
void run(){}
};
I just want to use as :
Abstract* a = new S<policy_1>(); // doesn't work
I just wanna to know how i could mix the templates with the
traditional abstract class design, thank you in advance.