i have a templated class with this template header
Code:
template<class InputType, class ReturnType, class ParamType1, class ParamType2>
and a variable declared as such
Code:
ReturnType (*m_pFunc)(ParamType1, ParamType2);
a function prototype
Code:
ReturnType (*)(ParamType1, ParamType2) GetFuncPtr(void);
and the function body defined as follows
Code:
template<class InputType, class ReturnType, class ParamType1, class ParamType2>
ReturnType (*)(ParamType1, ParamType2) CMenuItem<InputType, ReturnType, ParamType1, ParamType2>::GetFuncPtr(void)
{}
it tells me syntax error: ')' in the function prototype
and unexpected tokens preceding ';'
and then some more errors that are created because of this

so what am i doing wrong? it all looks like it should logically work?