While working on my event manager ive encountered a linker error and i think it could be a problem with my templates (not sure though). At the moment I have:
MDWEvents.h
class cEventManager
{
private:
public:
template<class T>
void RegisterListener(char* EventName, T* pClass, void (T::*func)(cEvent&) );
};
MDWEvents.cpp
template<class T>
void cEventManager::RegisterListener(char* EventName, T* pClass, void (T::*func)(cEvent&))
{
int ID = this->RegisterEventType(EventName);
cSignal1<cEvent>* sig = this->Events[ID];
sig->connect(pClass,func);
}
All the other functions that ive defined link ok so im not sure on the problem. If anyone has any ideas (or even better a solution:) )id love to hear them.
Quote:Original post by BosskIn Soviet Russia, you STFU WITH THOSE LAME JOKES!