AUDRABRETT7
asked on
How to pass a member function to a template class?
How to pass a member function to a template class?
class widget
{
public:
bool SomeFunc(void);
};
template<class T>
class MyTemplateClass
{
public:
MyTemplateClass(????? MemberFunction);
??????? m_MemberFunction;
};
If I want to pass widget::SomeFunct to the MyTemplateClass, what syntax do I have to use.
Please provide working example.
class widget
{
public:
bool SomeFunc(void);
};
template<class T>
class MyTemplateClass
{
public:
MyTemplateClass(????? MemberFunction);
??????? m_MemberFunction;
};
If I want to pass widget::SomeFunct to the MyTemplateClass, what syntax do I have to use.
Please provide working example.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.