I have this function
I am going to have to duplicate the function like 8 times, because the cSelectionWheel template has different types. My thought was to template this function too, but I get this error.Code:void cRenderEngine::DrawWheel(cSelectionWheel<sTerrainType*>* selectionWheel) { --code-- }
error C2244: 'cRenderEngine:Code:template<class T> void cRenderEngine::DrawWheel(cSelectionWheel<T>* selectionWheel) { --code-- }rawWheel' : unable to resolve function overload
I am guessing that it wont let me template this function because the cRenderEngine class is not a template... Do you have any ideas as to how I can do what I want, apart from repeating the function for each type...



LinkBack URL
About LinkBacks
rawWheel' : unable to resolve function overload


