M
MaxMax
I have a
template<class T, class TBase>
TBase* MyFunc(int *a, int *b)
{
T* pT = new T;
return static_cast<TBase*>(pT);
}
(the a and the b are used in some way in the true function)
(clearly TBase must be a base class of T to make it work)
I want to create something like
list<pointerfunctions> a;
How do I write the signature of the function? I can't use typedef because
there is a template...
--- Thanks
template<class T, class TBase>
TBase* MyFunc(int *a, int *b)
{
T* pT = new T;
return static_cast<TBase*>(pT);
}
(the a and the b are used in some way in the true function)
(clearly TBase must be a base class of T to make it work)
I want to create something like
list<pointerfunctions> a;
How do I write the signature of the function? I can't use typedef because
there is a template...
--- Thanks