I'm trying to declare a template function pointer in C++.
template <class T>
class MyClass
{
public:
typedef const unsigned char* (T::*MyTemplatedEvent)(unsigned long &myParameter);
};
but for some reason I keep getting this error:
'T': must be a class or namespace when followed by '::'
Can somebody tell what I'm doing wrong?
the compiler should know that T is a class. It says so above the MyClass declaration...