x__x
I want to do something like this:
typedef long (* fp)(BaseWindow< fp > & wnd, HWND hwnd, long wparam, long lparam);
But I get a compile error:
error C2065: ‘fp’ : undeclared
identifier
Is it possible to implement this somehow?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No it isn’t, because the type of the template parameter would include itself. This would yield to an endless recursion in the type.
If instead of the class template specialization, you accept a base-class of it, that’s very possible
What do you want to do with this?