Template in RUNTIME_CLASS macro
Posted on 1998-11-16
I've declared a template class which looks like this:
template <class INPUT_WND_TYPE>
CInpWnd<INPUT_WND_TYPE>::CInpWnd() : INPUT_WND_TYPE()
Then later, I pass a class name to the RUNTIME_CLASS macro like this:
When I compile, I get this error message:
C:\Windows\Bureau\Saisie\Saisie.cpp(78) : error C2039: 'classCInpWnd' : is not a member of 'CInpWnd<class CSaisieView>'
It seems that a parameter of type 'aaa<bbb>' passed to a macro has only the 'aaa' part being read.
Can someone help me with this. The use of templates for this situation in my program makes my code much smaller and more generic.