i have a templated class with this template header
and a variable declared as suchCode:template<class InputType, class ReturnType, class ParamType1, class ParamType2>
a function prototypeCode:ReturnType (*m_pFunc)(ParamType1, ParamType2);
and the function body defined as followsCode:ReturnType (*)(ParamType1, ParamType2) GetFuncPtr(void);
it tells me syntax error: ')' in the function prototypeCode:template<class InputType, class ReturnType, class ParamType1, class ParamType2> ReturnType (*)(ParamType1, ParamType2) CMenuItem<InputType, ReturnType, ParamType1, ParamType2>::GetFuncPtr(void) {}
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?




Reply With Quote