J
Johan
Hi,
How to create a list with template classes. I want to do something like this
template<class T>class Callback
{
// rest of class
};
typedef list< template<class T>Callback<T> *> CallbackList;
Later
class A
{
public :
void addCallback( ????? );
// rest of class
CallbackList cl;
};
void A :: addCallback( ???? )
{
cl.push_back< ????? >
}
How to add diffenrent class object to the linked list and what to change for
????
thanks
Johan
How to create a list with template classes. I want to do something like this
template<class T>class Callback
{
// rest of class
};
typedef list< template<class T>Callback<T> *> CallbackList;
Later
class A
{
public :
void addCallback( ????? );
// rest of class
CallbackList cl;
};
void A :: addCallback( ???? )
{
cl.push_back< ????? >
}
How to add diffenrent class object to the linked list and what to change for
????
thanks
Johan